Results 1 to 3 of 3
Thread: a couple js regex questions
Jan 10, 2011, 16:39 #1
- Join Date
- Jun 2008
- Rockford, IL
- 22 Post(s)
- 0 Thread(s)
a couple js regex questions
I have seen RegExp() object being used in some script... BUT I also have seen this being used instead: cls=/ain/gi;
What is the advantage of using an object instead of a simple variable as above?
and at the risk of answering my own question, is there a way to use a variable INSIDE a regex expression when NOT using the RegExp() object?
something like this...
As always .. advice is appreciated and thanks in advanceTips for better/ faster SitePoint forum answers
Brilliant ideas, elegant execution.
Graphic Design, Art Direction, Copywriting and Web Design.