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?

    807589
      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
      Thanks!
        1 2 Previous Next