mIRC Homepage
Posted By: MTec89 $replace - 01/09/03 09:56 PM
how can i replace lol and stuff like that with replace and not replaceing stuff like ~lol~ or if i must use this word... lolipop





BTW....
im back...and im going to chill out..ok...i just needed some time away...
Posted By: SladeKraven Re: $replace - 01/09/03 10:02 PM
Why would you say "lol lolipop" in the first place?
Posted By: MTec89 Re: $replace - 01/09/03 10:03 PM
im just using an example...

lolipop would turn into (in my script)
laughing out loudipop
Posted By: J0ke Re: $replace - 01/09/03 10:04 PM
/help $regex and this thread might be useful grin
Posted By: pheonix Re: $replace - 01/09/03 10:06 PM
wb laugh
Posted By: MTec89 Re: $replace - 01/09/03 10:08 PM
well i was wanting to use $replace...


and thanks pheonix
Posted By: ClickHeRe Re: $replace - 01/09/03 10:08 PM
you can use $reptok() for that if the word is surrounded by spaces which is what you showed in your example.
Posted By: bleach Re: $replace - 02/09/03 08:44 AM
on *:input:*: {
if (/* !iswm $1-) { msg $active $replace($1-,lol,lolipop,mirc,mIRC,IRC,Internet Relay Chat)

halt
}
}
Posted By: pheonix Re: $replace - 02/09/03 10:26 AM
if your replacing: mirc with mIRC, you need to use $replacecs
Posted By: bleach Re: $replace - 02/09/03 06:07 PM
ty
© mIRC Discussion Forums