copy whole line with certain word?

Tool for Search and Replace across multiple files.
User avatar
superman1231

copy whole line with certain word?

Post 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
User avatar
Fool4UAnyway

Re: copy whole line with certain word?

Post 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.
User avatar
superman1231

Re: copy whole line with certain word?

Post by superman1231 »

Thank you i will try this its going to help alot :D
Post Reply