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

[help] Matching
Author: Message:
Deco
Full Member
***


Posts: 188
Reputation: 4
42 / Male / Flag
Joined: Aug 2006
O.P. [help] Matching
Hi anyone point me to a document that gives good examples of the MATCH function?

I've been looking at some scripts from the forum here but I found it really tough to understand how to match patterns.

What I want to do is match 'someemail@someehost.com' in any message I send using the string from the msgsend function.

I prefer some link to a document than code to do it. But if you only know how to code it and no documents for me to read..I'll take that as well. Thanks!

edit: Here's an example of what I want to do:

Message from me to a@a.com: "Hi, please send your a message to b@b.com and tell him that I've sent you his way in search of the light."

Script would do: match the email from the message and send the part of the text after the b@b.com to b@b.com.

Message from me to b@b.com: "to a@a.com: and tell him I've sent you his way in search of the light"

Hope that helps.


This post was edited on 10-04-2006 at 03:29 PM by Deco.
10-04-2006 03:09 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [help] Matching
Iterate ChatWnd Counts something like this
code:
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
Contact = e.item();
if("someemail@someehost.com" == Contact.Email){
//do whatever
}

10-04-2006 03:18 PM
Profile E-Mail PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: [help] Matching
Match uses a regular expression to search for parts.

Match isn't really what you want here, you want a full regex search.

You can do that by using a regex object.

WikiPedia
http://www.regular-expressions.info/
[Image: 1-0.png]
             
10-04-2006 03:42 PM
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