Subj : Re: Regexp problem since Moz 1.6 To : netscape.public.mozilla.jseng From : James Ross Date : Wed Feb 11 2004 05:16 pm Julien Queinnec wrote: > > I made more test ; here a complete test case : > > [snip] > labelParamReg = "\\*"; > [snip] > labelParamReg = "\*"; > [snip] The issue here is that \ in a string in JavaScript means "the next character is special, but ignore the special-ness this time". It's an escape, so to include a "\" you need "\\". Thus the actual text in the first example is just \* and in the 2nd it is *. Obviously, you want the first one or your RegExp wouldn't be what you wanted. :) -- James Ross 101 Things You Do Not Want Your System Administrator To Say: 60. Hey Fred, did you save that posting about restoring filesystems with vi and a toothpick? More importantly, did you print it out? .