RAMMRODD Posted June 21, 2009 Share Posted June 21, 2009 (edited) My results are ................................................. Show Recent Messages (F3) accountnamego: Bob ................................................. without the rows of periods but with the space between the first and second sentence. I can trim a single line of text thats not hard but Im getting confused with the whole multi line editing. Any suggestions? Im trying to get the end result to be Bob no space before or after. Everything remains the same so I could split it after the space after the colon but how do I get rid of the first row and blank space? thanks Edited June 21, 2009 by RAMMRODD Link to comment Share on other sites More sharing options...
Authenticity Posted June 21, 2009 Share Posted June 21, 2009 Dim $sStr = 'Show Recent Messages (F3)' & @LF & @LF & 'accountnamego: Bob' ConsoleWrite(StringMid($sStr, StringInStr($sStr, 'accountnamego: ')+StringLen('accountnamego: ')) & @LF) Link to comment Share on other sites More sharing options...
passkalilo Posted June 21, 2009 Share Posted June 21, 2009 (edited) try this: $text = StringRegExpReplace($text, "\(F3\)\s\s \s\saccountname","\(F3\)"&@CRLF&"accountname") Edited June 21, 2009 by passkalilo Link to comment Share on other sites More sharing options...
RAMMRODD Posted June 21, 2009 Author Share Posted June 21, 2009 thanks for the replies, its almost 4am Ill try them out tomorrow...errr later today :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now