Profile
Achievement
inko9nito's Recent SnippetsTagged ruby
- All /
« 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
1454
posted 13 years ago by inko9nito