I want to find&replace using regular expression for the pattern
\((.+?)&\([EMAIL PROTECTED]) flag

('cat'&[EMAIL PROTECTED]) flag
 'cat'
it match this line and back reference is correct

('dog', 'mouse'), ('cat'&[EMAIL PROTECTED]) flag
 'dog', 'mouse'), ('cat'
it also match this line however the back reference is not that I wanted.
how can I get the true smallest group (in this case 'cat')?

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to