Keeping N characters in a text string

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
Posts: 1
Joined: Thu Mar 09, 2017 3:56 am

Keeping N characters in a text string

Post by carl34 » Thu Mar 09, 2017 4:01 am

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!

User avatar
DataMystic Support
Site Admin
Posts: 2286
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Re: Keeping N characters in a text string

Post by DataMystic Support » Sat Mar 18, 2017 7:49 am

Use an EasyPattern:


Code: Select all

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

Code: Select all

@first@my new string

Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

Post Reply