Regular Express

OOzy Pal oozypal at gmail.com
Sat Jun 30 21:54:59 UTC 2007


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




More information about the ubuntu-users mailing list