/ Published in: Regular Expression
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>')`
**Example:**
Make text between asterisks bold, like in Textile (in Ruby):
`test.gsub(/(\*)+([^.*?$]+)+(\*)/, '<strong>\\2</strong>')`
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(\*)+([^.*?$]+)+(\*)
URL: http://rubular.com/r/73UNIqgDuO