Timothy Johnson schreef:
> /.*?\{([^\}]*)\}(?=.*")/gi
There is no need to escape a } in a character class.
Something like
[^x]*x
can also be written as
.*?x
The "/i" modifier is superfluous. The last .* can also be minimalized.
So an alternative is:
/ [{] (.*?) [}] (?=.*?") /xg
or even
/ { (.*?) } (?=.*?") /xg
because the opening '{' is not followed by a [,0-9].
(untested)
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>