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

Browse by Tags

All Tags » replace
Showing page 2 of 4 (32 total posts)
  • find if either stringa or stringb do not exist in a string

    I am working on making a bbcode system with php using preg_replace(), and I am making it so that other tags will not work inside of a code block. This is the code I am currently using, it almost works: /(?!\[code\])(.*)(\[b\])(.+)(\[\/b\])(.*)(?<!\[\/code\])/Usi  what I want it to do is if [*code] and [*/code] are around the text inside, ...
    Posted to Construction Advice (Forum) by sarathi on July 31, 2009
  • Numbering by a 5 year old

    Hi Im am writing a function in SQL Server 2005 using a simple C# assembly that implements C# regex functions. I found the assembly on codeproject. The data I am trying to modify contains numbering, that was entered by a 5 year old probably.  Here is 5 of the problem data on the LEFT and data I need to return on the RIGHT The word ...
    Posted to Construction Advice (Forum) by HeavenBurns on June 10, 2009
  • 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
  • Search and trim the result with a single regular expression

    Hi all, Please help to me to solve my problem. I want to search inthe following string. “Your user id is U101 and password is P101” I want to capture 101 following the letter ‘U’. I can get itusing the regular expression “U(\d)+”. But the result is carrying the letter‘U’. I can’t ...
    Posted to Construction Advice (Forum) by thomas_joyeee on April 2, 2009
  • Insert missing trademark and registered symbols

    Hi I`m using ASP.NET C# and need to create a web application to autofix some text where company name and product names are missing ®(registered) and ™(trademark) symbols. We have a huge amount of text as articles in 30 different languages. I`m planning to use RegExs MatchCollection to find all hits in each article and then replace ...
    Posted to Construction Advice (Forum) by nestur on December 9, 2008
  • Tooltip word replacement

    Hi I'm currently working on a ASP.NET project where i want to replace sertain words with a link ex. "all your base are belong to us, is a cool phrase" if I want to replace the letter a as in "a cool phrase" with <a href="/#mylink">a</a> i want the new string to look like this, "all your base ...
    Posted to Construction Advice (Forum) by gralov on November 14, 2008
  • Replacing space within anchor tag

    HI,  I'm using c# I need to replace all spaces between <a and > this mean only within the opening tag. i would like to replace the space with [SAVESPACE] Example: Input: Hello. <a href='blaaa' target='_blank'>hello world</a> blaaa <a href='blaaa2' ...
    Posted to Construction Advice (Forum) by SectionI on October 29, 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
  • Replacing Missing Values in comma delimited file - Can this be done in one Regexp?

    I'm processing a comma delimited string and need to *ALL* replace missing values with '0's. Leading and/or trailing ','s denote missing values. For example:  The string ",,2,3,,,4," becomes "0,0,2,3,0,0,4,0"  Note that there are missing values at BOTH the beginning AND the end of the input ...
    Posted to Construction Advice (Forum) by SlowLearner on July 23, 2008
  • VBScript RexExp Replace a textstring only if not within tags <></>, possible?

    Hi, i got a dillema... for a company i need to make every occurence of it's company name to be in red and bold font. i have writen a simple function that i can call and filter all text database records Function companyName(inputText)  If inputText<>"" Then   companyName= ...
    Posted to Construction Advice (Forum) by RvdH on June 28, 2008