not (!) operator in regex

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Kimmel

    not (!) operator in regex

    is there a not (!) operator in regex? If so, how does one use it. I
    am unable to find this information.

    Thanks
  • The Last Gunslinger

    #2
    Re: not (!) operator in regex

    Chris Kimmel wrote:[color=blue]
    > is there a not (!) operator in regex? If so, how does one use it. I
    > am unable to find this information.[/color]

    There is and the character is '!'.
    I cannot remember off the top of my head at the moment how to use them.
    Try regexlib.com
    Do a search for negative lookaheads and lookbehinds (I think thats what
    theyre called)

    HTH
    JB
    [color=blue]
    > Thanks[/color]

    Comment

    • AlexS

      #3
      Re: not (!) operator in regex

      Hi, Chris

      this is ^ symbol. E.g. [^12] will match any character except 1 or 2.
      See this link for more details


      HTH
      Alex

      "Chris Kimmel" <cdkimmel@yahoo .com> wrote in message
      news:b11b59.040 6161750.47c5a1a 3@posting.googl e.com...[color=blue]
      > is there a not (!) operator in regex? If so, how does one use it. I
      > am unable to find this information.
      >
      > Thanks[/color]


      Comment

      • The Last Gunslinger

        #4
        Re: not (!) operator in regex

        Chris Kimmel wrote:[color=blue]
        > is there a not (!) operator in regex? If so, how does one use it. I
        > am unable to find this information.[/color]

        There is and the character is '!'.
        I cannot remember off the top of my head at the moment how to use them.
        Try regexlib.com
        Do a search for negative lookaheads and lookbehinds (I think thats what
        theyre called)

        HTH
        JB
        [color=blue]
        > Thanks[/color]

        Comment

        • AlexS

          #5
          Re: not (!) operator in regex

          Hi, Chris

          this is ^ symbol. E.g. [^12] will match any character except 1 or 2.
          See this link for more details


          HTH
          Alex

          "Chris Kimmel" <cdkimmel@yahoo .com> wrote in message
          news:b11b59.040 6161750.47c5a1a 3@posting.googl e.com...[color=blue]
          > is there a not (!) operator in regex? If so, how does one use it. I
          > am unable to find this information.
          >
          > Thanks[/color]


          Comment

          Working...