Greetz people.
I am looking for a way to do the same thing as PHP preg_replace () (finding the text matching the regular expression and replacing it) in the shell script.
So, consider the following file.
<a href="http://example.com/">Website #1</a> <a href="http://example.net/">Website #2</a> <a href="http://example.org/">Website #3</a>
And I want to get the following:
http://example.com/ http://example.net/ http://example.org/
Is there any way to do this? Thanks.
unix bash php regex preg-replace
seriousdev
source share