|
|
Browse by Tags
All Tags » replace
Showing page 1 of 4 (32 total posts)
-
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 ...
-
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 ...
-
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. ...
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
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?? ...
-
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
- ...
-
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 ...
1
|
|
|