I need to extract some text patterns from the huge HTML.
I can definitely write a precise regular expression with the group that matches exactly what I need.
What tool would be appropriate to extract these groups and get me the list of them back?
So basically I'm looking for a powerful tool that allows you to play with the text/search/find/replace/extract using regular expressions. I assume this tool could also have different helpful functionality like sort/unique, etc.
I understand there are different linux tools that could be used for that purpose, but I don't know of any combination of them that could allow me to easy do what I need.
Here is the example of the problem:
I have an HTML source with lots of different link on it. I need to extract all the URLs from these links, but not all the URLs on the page. I need to parse these URLs and process them further.
Let's say URL is the following:
I need to extract
www354 and add it to some pattern, e.g.:
I would appreciate for any suggestions on what is the best tool/tools to do this.