What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » how to use special characters in a switch

how to use special characters in a switch
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: how to use special characters in a switch
quote:
Originally posted by Mattike
code:
var reQuestion = /(^|\s)question(\s|$)/si;


I think you mean the following expression....

code:
var reQuestion = /\bquestion\b/i;

\b just denotes the end of a word (beginning or end), if you were to have the lines of a commar or questionmark after the word "question" then yours wouldn't fire.  Also the s modifier doesn't exist in JScript ;)
[Image: markee.png]
02-07-2008 01:13 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
how to use special characters in a switch - by koen on 02-07-2008 at 09:35 AM
RE: how to use special characters in a switch - by Matti on 02-07-2008 at 10:52 AM
RE: how to use special characters in a switch - by koen on 02-07-2008 at 11:01 AM
RE: how to use special characters in a switch - by markee on 02-07-2008 at 01:13 PM
RE: how to use special characters in a switch - by Spunky on 02-07-2008 at 10:00 PM
RE: how to use special characters in a switch - by markee on 02-08-2008 at 05:28 AM
RE: how to use special characters in a switch - by Matti on 02-08-2008 at 08:22 AM
RE: how to use special characters in a switch - by Spunky on 02-08-2008 at 05:42 PM
RE: how to use special characters in a switch - by markee on 02-09-2008 at 02:13 AM
RE: how to use special characters in a switch - by Spunky on 02-09-2008 at 11:10 AM


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