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

20089Re: [PBML] Re: Compact digital range RexEx - And complement?

Expand Messages
  • Jonathan Paton
    Dec 1, 2004
    • 0 Attachment
      Dear Allan,

      I think you are looking for:

      "(?!pattern)"
      A zero-width negative look-ahead assertion. For example
      "/foo(?!bar)/" matches any occurrence of "foo" that isn't
      followed by "bar". Note however that look-ahead and look-
      behind are NOT the same thing. You cannot use this for
      look-behind.

      ...

      from perldoc perlre

      You might need to wrap the regex with ^ and $ assertions.

      Jonathan Paton
    • Show all 20 messages in this topic