Using EasyPattern for capture ?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

pakiyabhai
Posts: 8
Joined: Tue Feb 09, 2010 7:26 pm

Using EasyPattern for capture ?

Postby pakiyabhai » Tue Feb 09, 2010 8:28 pm

Hello ,

I have asked you in email , but I am listing it here as well.

I want to change Jan. 18 to (January 18) using easy pattern. You have given me the way to do it by perl that is Jan. (\d+?) , and replace with (january $1)


I wanted to know how would i use easy pattern for the same, i know i can capture it by Jan. [1-2 digit] , but how do i replace it back ?
You have used $1 to store it in perl , how does easy pattern work , and could i get more example of this capture ?

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

Re: Using EasyPattern for capture ?

Postby DataMystic Support » Wed Feb 10, 2010 10:35 am

Here's the email reply:

Try EasyPatterns instead and read the help file. The equivalent EasyPattern looks like this:

Jan. ([ capture( 1+ digits ) ])



Replace with is still:

January $1



2. Using EasyPatterns,

(Jan. [ capture( 1+ digits ) ] [ capture( 1+ digits ) ])

Or

(Jan. [ capture( 1+ letters ) ])



3. Use:

[3 lines,

Jan. ([ capture( 1+ digits ) ])
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 6 guests