-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by Atomic Taco
-
-
How specific is your search and replace? Is it just replacing the text between tags with empty string? Please explain.
Yes, just replace the text between > and < with empty string. But the input is going to have many nested tags, and there will already be an empty string between some > and <.
-
I'm looking for some Regex that'll take something like this:
<br><a href="test.gif">link</a><br><p>Some more text here</p>
And return something like this:
<br><a href="test.gif"></a><br><p></p>
-
[!--quoteo(post=374170:date=May 15 2006, 06:18 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 15 2006, 06:18 PM) [snapback]374170[/snapback][/div][div class=\'quotemain\'][!--quotec--] Find and replace then? [/quote]
That works, but on all the programs I know you have to open each file one at a time and perform the find/replace.
-
[!--quoteo(post=374154:date=May 15 2006, 04:40 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 15 2006, 04:40 PM) [snapback]374154[/snapback][/div][div class=\'quotemain\'][!--quotec--] Ever heard of [i]sed[/i] and [i]awk[/i]? [/quote]
I'm on Windows, so, no
-
Oh, I always code with <?php, but I was trying to get a third party script to work that had over 100 files that I didn't want to go through and fix.
-
Thanks. I'm changing this on my testing server which is my own personal PC so I'll have access.
Now where'd that SOLVED button go? -
Title & description pretty much sums it up.
Thanks for your help.
[SOLVED] Yet another Regex request...
in Regex Help
Posted
Thanks, works just as I expected.