fork download
  1. text = '**hello \* world**'
  2. puts text.gsub(/(?<!\*)\*\*([^*\\]*(?:\\.[^*\\]*)*)\*\*(?!\*)/m, '*\1*')
Success #stdin #stdout 0.01s 6028KB
stdin
Standard input is empty
stdout
*hello \* world*