"Jump to" Regular expression
Posted: Wed May 29, 2002 6:56 pm
Why does my reg exp for the jakarta ant build tool not work?
\[javac\] \([[:alpha:]]:[^:]+\):\([[:digit:]]+\)
The only differences I see from the FAQ one...
^[ \t]+\[javac\] \([A-Za-z]:[^:]+\):\([0-9]+\):
...is that I use character classes, I don't check for leading white space, and I don't bother matching the : at the end. But my expression still matches the Filename and LineNum in the Ant output. It just doesn't work as a jump to expression.
Thanks!
\[javac\] \([[:alpha:]]:[^:]+\):\([[:digit:]]+\)
The only differences I see from the FAQ one...
^[ \t]+\[javac\] \([A-Za-z]:[^:]+\):\([0-9]+\):
...is that I use character classes, I don't check for leading white space, and I don't bother matching the : at the end. But my expression still matches the Filename and LineNum in the Ant output. It just doesn't work as a jump to expression.
Thanks!