What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » replace_str

replace_str
Author: Message:
Zeelia
New Member
*


Posts: 11
– / Male / Flag
Joined: Dec 2007
O.P. replace_str
Hi!
I have a problem, what i wanna do is that when you execute the command which i have created (/replaceM) it should replace words so what i want it to do is similar to the PHP function str_replace,

PHP
quote:
Description
mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.

i want it to search for i.e afk in the whole message im sending, for example:
/replaceM im going afk now, bye!
i want it to search for 'afk' in the sentence and replace the word 'afk' with '<Away From Keyboard>'
how can i do that? search for a word in a sentence and then replace it with another word?

This post was edited on 05-06-2008 at 06:37 PM by Zeelia.
05-06-2008 06:36 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
replace_str - by Zeelia on 05-06-2008 at 06:36 PM
RE: replace_str - by MeEtc on 05-06-2008 at 08:24 PM
RE: replace_str - by Zeelia on 05-06-2008 at 08:36 PM
RE: replace_str - by roflmao456 on 05-06-2008 at 09:19 PM
RE: replace_str - by Zeelia on 05-06-2008 at 11:01 PM
RE: replace_str - by CookieRevised on 05-07-2008 at 02:09 AM
RE: replace_str - by Zeelia on 05-07-2008 at 11:02 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