What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] variables into regular expressions

[?] variables into regular expressions
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. Undecided  [?] variables into regular expressions
i wonder how i could put variables into regular expressions?

help or whatever will be helpful.
[quote]
Ultimatess6
: What a noob mod
02-11-2007 12:19 AM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: [?] variables into regular expressions
You can create a regular expression from a string:

code:
// Create a string to store the pattern of our regular expression
var sRegExp = "[abc]+";
// Create a RegExp object with the pattern as sRegExp and the flags as "i" (case insensitivity)
var rRegExp = new RegExp(sRegExp, "i");

You can insert variables in the string.

This post was edited on 02-11-2007 at 12:56 AM by deAd.
02-11-2007 12:54 AM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] variables into regular expressions
thanks LOL it actually works ! woot

This post was edited on 02-11-2007 at 02:27 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
02-11-2007 02:20 AM
Profile PM Web Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: RE: [?] variables into regular expressions
quote:
Originally posted by roflmao456
thanks LOL it actually works ! woot

why's that funny? :undecided:
02-11-2007 02:35 AM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] variables into regular expressions
quote:
Originally posted by deAd
why's that funny? :undecided:

[offtopic] i do not know. [/offtopic]

but anyways thanks for the help :)
[quote]
Ultimatess6
: What a noob mod
02-11-2007 02:40 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On