I'm working on a script to search through a block of HTML text for %{} signs to replace them with dynamic variables.
For some reason my regex is not working.
str = "<p>%{urgent_personal_confidential}</p>"
regex = /^%\{(.*)\}/
puts str.match(regex)
I am sure its something simple... any ideas on what could be wrong?