russellhq
03-04-2009, 01:26 AM
I am trying to remove string patterns from a text file but having a little difficulty doing it efficiently. The file is HTML code and the pattern in the file is like:
"<a href=*******>"
i.e. it's a HTML tag.
The "*" represents some of the characters inside the tag.
The problem is, I don't know how many of these characters there will be.
I was hoping there would be an easy solution using Replace function. i.e. give it a string to match that equals the above pattern and replace it with "". Problem is, I don't know what the above would look like.
Any ideas?
"<a href=*******>"
i.e. it's a HTML tag.
The "*" represents some of the characters inside the tag.
The problem is, I don't know how many of these characters there will be.
I was hoping there would be an easy solution using Replace function. i.e. give it a string to match that equals the above pattern and replace it with "". Problem is, I don't know what the above would look like.
Any ideas?