RegExp problem
Posted: Fri Sep 12, 2003 12:48 pm
I saw this posted on another forum and spent a few hours
trying to solve it. With my limited knowledge on RegExp's
I've come to the conclusion that it simply can't be done.
Pls prove me wrong!
trying to solve it. With my limited knowledge on RegExp's
I've come to the conclusion that it simply can't be done.
Pls prove me wrong!
Finding lines containing one word and not another:
I've been trying to get a regular expression that will find a line beginning
with the word "ROUTINE" but not containing the word "FROM" anywhere in
the line. In the example below, it would need to find Routines 1 and 2 but
not 3 or 4.Code: Select all
ROUTINE Routine1 (arg1 : integer; arg2 : string) ROUTINE Routine2 ROUTINE Routine3 (arg1 : intger) FROM program ROUTINE Routine4 FROM program