0 Replies Latest reply on Aug 6, 2007 10:34 PM by wilvc

    Regular Expressions

    wilvc
      All -

      I've been trying to write a RegExp that matches a word boundary. I've got the pattern I want to match (as long as it occurs at the beginning of a word, case-insensitive) in a var called text. When I try the following (pseudocode), I fail to match.

      new RegExp("\b" + text, "i");

      Any thoughts?

      Thanks!

      Wil Van Cleve