1 2 Previous Next 17 Replies Latest reply: Dec 30, 2008 9:41 AM by 807589 RSS

    how do I make whitespace optional in a regular expression?

      I want to match "this is a test" regardless of how many spaces (or tabs and newlines) it has between all the words. I am not sure if I am doing it right though..This is what I have
      this (\s*)?is (\s*)?a (\s*)?test
        1 2 Previous Next