Look for zero-width positive look-ahead in the perldocs ((?=pattern)) and you might be interested in using the s regex switch (same document as refered to above).
Hope this helps, -gjb-
In reply to Re: regexp match up to but not incliuding...
by gjb
in thread regexp match up to but not incliuding...
by substrate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |