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 1 of 4 (32 total posts)
  • Renaming Help - Karaoke Files

    First let me say that I am not very familiar with Regular Expressions, but in my researching, I think that it may be the way to go for what I'm trying to accomplish.  I have thousands upon thousands of Karaoke files, in various naming conventions.  I've tried multiple renaming utilities to no avail.  I've decided to try ...
    Posted to Construction Advice (Forum) by loditn on June 2, 2011
  • BBCode --> HTML table

    Hello I have a forum that allows custom bulletin board code to be executed through PHP files. Now I'm trying to construct a html table tag from some kind of 'template'. A pipe symbol designates the delimiter between individual cells of the table and a linebreak designates that a new table row should be inserted. Ofcourse, there is no ...
    Posted to Construction Advice (Forum) by Vince0789 on May 13, 2011
  • Optimizing a string replacement algorithm in javascript

    Ok so I have a rather slow algorithm that I would really love some advice to speed up! It may repeat many times over different large data strings. The string 'data' contains "variables" (denoted by ${myVarName} in the data) that must be replaced with the value of the corresponding (either by id or name) element on the html page. ...
    Posted to Performance (Forum) by floss on May 9, 2011
  • gawk: multiple replacement of different regexp's

    This is my task: I have written lots of texts that I transform into HTML code, TeX code or other "printing languages" using an Gawk script (I work on a Windows computer using cygwin for Unix-like tasks like running shell scripts). Within the text special characters are coded in a special way so they can be replaced with codes which ...
    Posted to Construction Advice (Forum) by Daniel on March 12, 2011
  • Remove unwanted spaces with regex

    Hi, first of all my experience with regex are very low. But now I have problem which seems to be suitable for handling with regular expressions. My problem is the following: I have a string which can start with some tab characters (0-n times) followed by some spaces (0-n times) and then some other user data (beginning with a non space). I want ...
    Posted to Construction Advice (Forum) by martin_de on March 7, 2011
  • Remove / Replace characters between specific points in a file name

    I'm attempting to use PCRE as part of my scripting and have hit a mental block. Regex is not a strong point for me so please bear with me. What I have is a file name such as this one: My music name (Album Name - Artist Name) 2010_12_15_14_45_55 0001.mp3 What I want to do is remove the date/time/unique number from the name which was ...
    Posted to Construction Advice (Forum) by gritts on January 16, 2011
  • Require help in finding and replacing a pattern

    Hi  I am new to Regular Expressions. Appreciate if you can help me with the below request: Pattern to search --> AB$C999 DEF=XYZ                (A, B and C could be any character between A to Z and $ is a constant. The number 999 can again be any number between 0 ...
    Posted to Construction Advice (Forum) by rcpriya on December 14, 2010
  • Replace substring1 with substring2 only when substring1 has non-whitespace border characters

    I am performing a grep find and replace in my text editor TextWrangler on a very large CSV data file. I have a source string of hello??world ??goodnight?? moon?? wake up and would like to replace the ?? substring with -- ONLY when it is bounded by non-whitespace characters on both sides, yielding a target string of hello--world ??goodnight?? ...
    Posted to Construction Advice (Forum) by samuelClemens87 on September 24, 2010
  • <font> to <span>

    I want to change a font element to an XHTML compatible variant. e.g. find <font face="arial" size="1" color="red" >hello world</font> replace <span style='font-family: arial; font-size: 1; color: red;'>hello world</span>   note: - the font attributes can change order - ...
    Posted to Construction Advice (Forum) by iCon on July 8, 2010
  • Replacing elements of a pattern as part of the matching process?

    I am trying to matching a sub group, but replace the content of that sub group in the resulting string with something else.  For example, say I want to match a phone number like 800-123-4567 with \d3-\d{3}-\d{4} but get out of it 800-1234 567 (replacing the '-' with ' ' but only within the number, not after the area code). I ...
    Posted to Construction Advice (Forum) by patrickq on September 18, 2009
1 2 3 4 Next >