Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » find replace
Showing page 1 of 3 (24 total posts)
  • remove citations from within a document

    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:  ...
    Posted to Construction Advice (Forum) by brbell01 on April 27, 2010
  • Changing patterns depending on structure within substring

    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 ...
    Posted to Construction Advice (Forum) by casualcoder on March 20, 2010
  • noobe question on text extraction

    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. ...
    Posted to Construction Advice (Forum) by uzi on March 14, 2010
  • Date increment

    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 ...
    Posted to Construction Advice (Forum) by regexn00bpain on May 18, 2009
  • Changing order of text in file names (regex rename operation) [SOLVED]

    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 ...
    Posted to Construction Advice (Forum) by jonathan33 on October 26, 2008
  • Replacing text with matched text from same string

    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 - ...
    Posted to Construction Advice (Forum) by dhl on August 15, 2008
  • Replace bgcolor attributes with a style in any html tag

    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 ...
    Posted to Construction Advice (Forum) by PommyTom on July 4, 2007
  • RegEx Help - Replacing hrefs

    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, ...
    Posted to Construction Advice (Forum) by TampaWebDevelopment on June 27, 2007
  • HTML: removing all tags between a specific tag

    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 ...
    Posted to Construction Advice (Forum) by liso on May 16, 2007
  • CSS Matching

    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 ...
    Posted to Construction Advice (Forum) by jimbo2150 on April 16, 2007
1 2 3 Next >