Jump to content
Sign in to follow this  
RAMMRODD

Trying to trim some text

Recommended Posts

RAMMRODD

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 by RAMMRODD

Share this post


Link to post
Share on other sites
passkalilo

try this:

$text = StringRegExpReplace($text, "\(F3\)\s\s \s\saccountname","\(F3\)"&@CRLF&"accountname")
Edited by passkalilo

Share this post


Link to post
Share on other sites
RAMMRODD

thanks for the replies, its almost 4am Ill try them out tomorrow...errr later today :-)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.