Page 1 of 1

Keeping N characters in a text string

Posted: Thu Mar 09, 2017 4:01 am
by carl34
Hello
I am on a trial of your wonderful software. How do I replace a text string with the 3 first characters of the same text string (i.e.just keep first 3 characters) ? The text string can be of any length and will start with "$" and end with ".csv".
Thank you!
Carl

Re: Keeping N characters in a text string

Posted: Sat Mar 18, 2017 7:49 am
by DataMystic Support
Use an EasyPattern:

Find

Code: Select all

[ capture( 3 chars) as 'first', longest 1+ not cr or lf ]
Replace with

Code: Select all

@first@my new string