What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » how do i replace this text?

how do i replace this text?
Author: Message:
TazDevil
Full Member
***

Avatar
sleep(0);

Posts: 359
Reputation: 11
40 / Male / Flag
Joined: May 2004
RE: how do i replace this text?
quote:
Originally posted by markee
Why use such a complex regular expression when you can do the same by this.

code:
var nMessage = Message.replace(/teh/gi, "the");

This will do exactly the same thing as what your regular expression did except it is smaller and less confusing for those that are new to regular expressions.

the point is i want to replace ONLY words not every occurance of "teh", as in other words, the spelling might be correct....

i thought \w was supposed to be used but since what Mattike gave me works i wont question his authority ;)

now i need to make an array of the strings and corrections and a for loop.. i think
Window Manager is discontinued, for WLM try the new,
Enhancer for contact list docking, auto-hide, hide taskbar button, remove button flashing and remember keyboard layout in conversation windows
12-01-2006 04:31 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
how do i replace this text? - by roflmao456 on 11-21-2006 at 02:55 AM
RE: how do i replace this text? - by markee on 11-21-2006 at 02:59 AM
RE: how do i replace this text? - by roflmao456 on 11-21-2006 at 02:59 AM
RE: how do i replace this text? - by markee on 11-21-2006 at 03:12 AM
RE: RE: how do i replace this text? - by roflmao456 on 11-21-2006 at 03:25 AM
RE: how do i replace this text? - by markee on 11-21-2006 at 03:37 AM
RE: how do i replace this text? - by roflmao456 on 11-21-2006 at 04:14 AM
RE: how do i replace this text? - by TazDevil on 12-01-2006 at 04:08 PM
RE: how do i replace this text? - by Matti on 12-01-2006 at 04:16 PM
RE: RE: how do i replace this text? - by markee on 12-01-2006 at 04:25 PM
RE: how do i replace this text? - by TazDevil on 12-01-2006 at 04:23 PM
RE: how do i replace this text? - by TazDevil on 12-01-2006 at 04:31 PM
RE: how do i replace this text? - by Matti on 12-01-2006 at 04:33 PM
RE: how do i replace this text? - by TazDevil on 12-01-2006 at 04:52 PM
RE: how do i replace this text? - by markee on 12-01-2006 at 05:08 PM
RE: how do i replace this text? - by CookieRevised on 12-01-2006 at 09:02 PM
RE: how do i replace this text? - by TazDevil on 12-01-2006 at 09:44 PM


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