Welcome To Snipplr


Everyone's Recent Ruby Snippets Tagged regex



« Prev 1 Next »
This regular expression used in Ruby will extract the characters between single or multi-character delimiters. It helps when you have strange delimiters such as \":delimeter1: text I want to grab goes here :delimiter2:\"
0 1642 posted 15 years ago by webonomic
Matches single line Javascript (and PHP, etc.) comments
1 1323 posted 17 years ago by mikegreen
1 1272 posted 17 years ago by inkdeep
2 1250 posted 17 years ago by inkdeep
Use this to sanitize a string and convert all wierd characters to your choice of delimiter
1 1396 posted 18 years ago by vanne
« Prev 1 Next »