Page 1 of 1

copy whole line with certain word?

Posted: Thu Jul 26, 2012 1:13 pm
by superman1231
Hello

how do you copy a whole line with a certain word in it and just this line in thousands of diffrent
html files?

for example i want a link example.com/games/gamefiles/349805743.swf

so if i can find all the lines and copy all the information to a list which contain .swf il be able to find all the urls i need and copy them to a list but not delete them from the files?

help would be great thanks

Re: copy whole line with certain word?

Posted: Thu Jul 26, 2012 8:02 pm
by Fool4UAnyway
You could use Agent Ransack for this purpose: find any line('s content)s that contain a certain search string.

But you can do it in Text Crawler, too.

If you set it to "single line" mode, you could use the following template.

Find:
^.*yourwordhere.*$

. means "any character"
* means "any consecutive string of the preceding expression, if present"

so, .* means "anything" which may be nothing as well

The expression above matches any lines that contains "yourwordhere".
You can extract those to the Scratch Pad.

Re: copy whole line with certain word?

Posted: Fri Jul 27, 2012 11:16 am
by superman1231
Thank you i will try this its going to help alot :D