How would I be able to have a starting point and ending point and grab all in beetween? Example : <noscript> Wanted Information </noscript> ...
Thanks again for making such a great program.
Extracting Text from files
A non-regex solution (for the macro) could be like this:
1. Search for the opening tag and put a linebreak character _before_ it.
2. Search for the closing tag.
3. Remove any linebreak characters between the two tags. Perform a replace on a selection from the closing tag to the opening tag.
4. Add a linebreak character _after_ the closing tag.
Now, all wanted information should be on individual lines, starting with the opening tag and ending with the closing tag.
5. Sort the lines (hey, there are a million...)
6. Keep the lines starting with the opening tag. They are sorted then.
If you do not want the lines to be sorted, you could perform a regex replace emptying all lines that do not contain the noscript tag.
1. Search for the opening tag and put a linebreak character _before_ it.
2. Search for the closing tag.
3. Remove any linebreak characters between the two tags. Perform a replace on a selection from the closing tag to the opening tag.
4. Add a linebreak character _after_ the closing tag.
Now, all wanted information should be on individual lines, starting with the opening tag and ending with the closing tag.
5. Sort the lines (hey, there are a million...)
6. Keep the lines starting with the opening tag. They are sorted then.
If you do not want the lines to be sorted, you could perform a regex replace emptying all lines that do not contain the noscript tag.
I'm using TC 2.0. I've got a bunch of ANSI text files that all begin with "FROM: [username]," where username varies. For example, one is an email whose first line is "FROM: Joe." I want to extract just the username. When I use "FROM: [\s\S]*\n" in Regular Expression mode and then click Find, it highlights the entire contents of the file in yellow. Isn't \n the right way to indicate that I want everything up to the next newline? Same thing if I use \r instead. ... Looks like a great program, my first time using ... wish me luck!