search, find duplicate and number

A place to try and solve your RegEx problems.
Post Reply
amster
Posts: 4
Joined: Wed Apr 29, 2015 8:03 pm

search, find duplicate and number

Post by amster »

This is the last one from me.

but imagine a document has three instances of:

Wednesday,17 June 2015
Wednesday,17 June 2015
Wednesday,17 June 2015

Is there any way to search it, and then number those 1., 2., 3.,

So we end up with:

1. Wednesday,17 June 2015
2. Wednesday,17 June 2015
3. Wednesday,17 June 2015

With thanks.
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: search, find duplicate and number

Post by DigitalVolcano »

There isn't currently a good way to add incrementing numbers with TextCrawler

There are some horribly complicated regular expression hacks here but I haven't tried them with the program!
http://stackoverflow.com/questions/1294 ... bstitution
Post Reply