I need a little more help... - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: I need a little more help... (/showthread.php?tid=63998) I need a little more help... by dbgtrgr on 07-25-2006 at 10:50 PM
ok, I have a text file that has a line that goes: code: RE: I need a little more help... by Shondoit on 07-25-2006 at 11:34 PM
code:This should work You wrote CharInfo, instead of FileInfo and you wrote .substr this could work, but not in this way you have 2 ways to extract text from a string... substr and substring, the both take 2 params, but the second param is treated different, with substr this param is treated as the length after the starting point, and with substring this param is treated as ending point But I would suggest using a better way, using Regular Expressions code:(I haven't tested this yet...) It's a lot shorter... It tries to match the string wich starts with Contact.Email + "begininfo" Then "(.*)", the dot [.] says it should match every possible character, the asterisk [*] says it should match the preceding character 0 or more times, and its enclosed in parentheses [(] [)], so it is saved in the $1 variable of RegExp, then it matches Contact.Email + "endinfo" at the end Look here for more information about RegExp's <Link> RE: I need a little more help... by dbgtrgr on 07-25-2006 at 11:57 PM hmm... Thank you ^^ You have been most helpfull. Especially about the substr substring thing... ^^ |