Page 1 of 1

How to do it?

Posted: Sun Jul 16, 2017 1:21 pm
by salazor
How to change this text to such

Code: Select all

mick_74656[MENTION=9015]hotmail[/MENTION].com
to

Code: Select all

mick_74656@hotmail.com
I try replace with regex [MENTION=.*] to @ but not working

Re: How to do it?

Posted: Sun Jul 16, 2017 2:12 pm
by ovg
Try Perl Regex:
find:

Code: Select all

\[(mention).*\]hotmail\[/\1\]
replace with:

Code: Select all

@hotmail

Re: How to do it?

Posted: Sun Jul 16, 2017 2:19 pm
by salazor
Not quite working because it is next is [MENTION=13551297]aol[/MENTION]
and this command replace on @hotmail

Re: How to do it?

Posted: Sun Jul 16, 2017 2:50 pm
by ovg
Find:

Code: Select all

 \[mention.*\](.*)\[/mention\]
replace with:

Code: Select all

@\1
btw there isn't something about aol or anything else in the first post

Re: How to do it?

Posted: Sun Jul 16, 2017 3:51 pm
by salazor
This working perfect! - Thanks.

Re: How to do it?

Posted: Sun Jul 16, 2017 4:09 pm
by ovg
You are welcome!