Extracting certain strings from text files

Tool for Search and Replace across multiple files.
Post Reply
User avatar
John Land

Extracting certain strings from text files

Post by John Land »

Hello!

Let's say I have 500 text files and I want to extract only the strings of the form:

"http://site.com?d=*****" where instead of *, there is a number.

How can I achieve this? I want only a list with such a structure and no other characters or code.
User avatar
DV

Post by DV »

Try this

Click on the 'Use Regular Expressions' box
Enter the following reg ex:
http:\/\/site.com\?d=[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?

Click 'Extract'.

This should work for numbers up to five digits (you can add more by modifying the expression).
Post Reply