Loading ...
Sorry, an error occurred while loading the content.

588Re: [NTS] How to search a QUESTION MARK in a regular expression

Expand Messages
  • Robert Bull
    Oct 10, 2012
    • 0 Attachment
      Wednesday, 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.


      Robert Bull
    • Show all 6 messages in this topic