I want to match either div and hash if the are enclosed with { } even
if there are other char in between. For example
Assume I have the following code
{def hash = div( 'common')}
<div>
I would like to match the first div but not the second. I tried this but no help
^{*\b(div|hash)\b*\}
--
OOzy
Ubuntu-Feisty