I want to find text inside a string Pattern from a data file and extract them in a text list using shell or AppleScript.
An example inside XML:
node file="source_files/ (var1) .mp3"
Another example inside HMTL:
src="http:// (example.com) /dir/ (var2) .txt"
1.1 source_files/example1.mp3 1.2 source_files/blah.blah 2.1 http://example.com/dir/example2.txt 2.2 http://example.com/dir/blah.blah
My question is this, how I am going to search, find and extract the series of all strings inside a text file that have the specific pattern of characters before, after or both?