Need Javascript match help

Discussion in 'JavaScript' started by webbriefcase, Oct 31, 2006.

  1. #1
    I have a script that defines a variable as follows:
      var offendingChar = value.match(pattern)
    Code (markup):
    How do I change the definition of that variable to be opposite of what it is
    i.e. instead of matching, everything that doesn't match pattern?

    Is this possible?

    - Bina.
     
    webbriefcase, Oct 31, 2006 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Could you post your pattern, and maybe an example of what you're trying to do?
     
    nico_swd, Nov 1, 2006 IP