Page 1 of 1

How do i find and extract links from multiple files?

Posted: Thu Jul 26, 2012 12:27 pm
by superman1231
Hello i have thousands of text files that contain a html somewhere in them that i would like to extract and make a list of

for example

example.com/game/gamefiles/459684390.swf

the directories of the links i want stay the same it just the end 3458934.swf that changes on each file?

how can i collect all these diffrent links?

thank you

Re: How do i find and extract links from multiple files?

Posted: Thu Jul 26, 2012 7:58 pm
by Fool4UAnyway
Specify what is exact and describe what is variable.

Find:
example\.com\/game\/gamefiles\/\d+\.swf

\d means "any digit" (0 to 9)
+ means "any consecutive string of at least one character"

so, \d+ means any integer value (any number)

Re: How do i find and extract links from multiple files?

Posted: Fri Jul 27, 2012 11:18 am
by superman1231
thank you for your answer :D