|
|
Browse by Tags
All Tags » find replace
Showing page 1 of 3 (24 total posts)
-
Hi a newbie here. I would appreciate some help getting rid of citations from text. I need to search and remove all instances of the following: (Author Year) . For example: (Smith, J. 2009). But not always in that format. Really I just need to remove all instances of an open, followed by a closed parentheses. Ive tried the expression: ...
-
Hi regex experts,
I’m searching for a regular expression for PHP’s preg_replace() in order to adjust concatenated strings (no multi-line).
These strings are fragments in German which form a sentence and therefore need to be (automatically) edited to adhere to grammar conventions.
Roughly speaking, the regular expression should ...
-
hi there
I am wanting to extract sku code from image url that has two patterns.
In the first case the image url ending pattern is as follows
/images/uploads/19113604-5.jpg
/images/uploads/19113604-4.jpg
/images/uploads/19113604-3.jpg
and I use regex
(?<=\buploads/)(\w+)
$1
this results in
19113604 which is what I want. ...
-
Hi all,
first post, so I hope I'm posting this correctly. I need to increment the hour in JavaScript by 1 (i.e. I need to get the current hour, add an hour, and then return the answer). An example of the string is as follows (the hour is bolded):
2009-05-18T16:15:00Z
I'm re-learning RegEx after not visiting it for years, so I'd ...
-
Hi folks,
I have about 230 mp3 files I wish to change the file naming on so that they sort better. I need to find some text (specifically "Pt.1" or "Pt.2" or "Pt.3" or "Pt.4" etc.), remove it, and then add text to the end in the format " - Part 1", or " - Part 2" etc.
Currently files ...
-
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 ...
1
|
|
|