/ Published in: Regular Expression
URL: http://rubular.com/r/73UNIqgDuO
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>')
Expand |
Embed | Plain Text
(\*)+([^.*?$]+)+(\*)
You need to login to post a comment.
