Welcome To Snipplr


Everyone's Recent Regular Expression Snippets Tagged ruby



« Prev 1 Next »
Matches text between each pair of asterisks (see URL above for demo) **Example:** Make text between asterisks bold, like in Textile (in Ruby): `test.gsub(/(\*)+([^.*?$]+)+(\*)/, '<strong>\\2</strong>')`
0 133 posted 9 years ago by inko9nito
Matches CSS-style comments spanning one or multiple lines
2 93 posted 12 years ago by mikegreen
« Prev 1 Next »