|
|
Browse by Tags
All Tags » find replace
Showing page 1 of 2 (19 total posts)
-
Hello, I need help on matching and replacing text with different matched text from same string. My goal is to be able to batch process a large set of text files that each have similar patterns and replacement criteria. Below is an example of a typical case. In the example below, BOLD text replaces strikeout text:
TITLE: Beautiful Losers - ...
-
Hi guys,
Sure this is probobly simple but my head just can't get around this issues... I'm trying to parse the HTML to start replacing/removing problem tags to meet W3C AA compliance and various other requirements. The first one i'm working on is removing the 'bgcolor' attribute of any table/tr/td tag. But using the ...
-
OK. Stick with me here. It is going to take me a few to explain this.
I am writing a small application in VB.NET. The ultimate task is to make a web browser, within a web browser. Basically, You open IE, FireFox, Safari, or whatever browser you like and go to the web application I am building. At the top of the web page, I have a tool bar, ...
-
Hello:
I have thousands of HTML files in my site and I want to remove all tags inside the H1 tag.
For example: In this case, I want to remove the following tags and their content <a><b><font>
<h1 ALIGN="CENTER"><b><font>The best search engine is<a ...
-
I am working in Coldfusion trying to match CSS items that are NOT listed.
For instance, I have this code to match:
<div style='color:#444444;float:none;'>Test Text</div>
I have the code matched down to:
color:#444444;float:none;
My regular expression to match CSS items ...
-
I've been trying to match the pattern below for about a week and
can't seem to get it right. I need to match a specific string that is
not hyper-linked or enclosed in brackets.I'm sure the code below won't
match what i need. It's simply to illustrate what i'm aiming to
accomplish:
[^\{] word here[^\} ]
Any ...
-
Please read the forum post guidelines before posting next time. There is very little information given here. I will assume a few things here. Firts that you only want to blank out that line and not the rest of the file. With this sample data
1 omfg woot oh yeah
2 w00t yeah
3 omfg blah blah
4 w00t yeah
5 w00t yeah
6 w00t yeah
7 omfg gone gone ...
-
Ok, so you will not be using groups. In that case you can use lookahead and lookbehind with this regular expression.
(?<=((<[^>]*>)[^<>/]*))(padding)(?=([^<>/]*(</[^>]*>)))
It will let you replace the word specified in the middle.
Brendan
-
Give this a shot.
(<[^>]*>)[^<>/]*(padding)[^<>/]*(</[^>]*>)
Same trick as before the middle group is what you want to replace each time. First and Third groups are the html tags around content. Any word you want to find can be put into that middle ...
-
Hi.
I'm making editors for a few different languages with vb.net, and what I want to do is to automatically correct the case of certain keywords and pre-built functions. I could of course use something like "Regex.Replace("msgbox", "MsgBox", RegexOptions.IgnoreCase)", but doing that for every function of VBScript ...
1
|
|
|