588Re: [NTS] How to search a QUESTION MARK in a regular expression
- Oct 10, 2012Wednesday, October 10, 2012, 2:00:55 AM, EB wrote:
E> / ?fred(.*)p=31 did not work as a search string in FIND.
I think John's right to suggest trying "\?". In regular expressions,
"?" is a metacharacter that means the character to its left may or may
not be present. Quoting The AWK Programming Language, "(r)? matches
the null string or any string matched by r ..." Ergo, you probably
need to "escape" a "?" with a backslash in front of it.
- << Previous post in topic Next post in topic >>