Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Central

variables and regular expression

Author Message
andrethegiant



Joined: 08 May 2005
Posts: 78

Posted: Sat Jul 23, 2005 - 6:48 pm    Post subject: variables and regular expression Reply with quote

is it possible to insert a variable into a regular expression string? for example, something like this:
Code:

reg = /name="val"+i+"" value="[\w]+/gi

where i is the variable (an interger, let's say). then this should work for val0, val1, val2, etc.

Well, at least that's what I'm hoping it would do. If you know the correct way of doing this, please post!
View user's profile Send private message Send e-mail Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group