Tagged Questions
3
votes
1answer
249 views
Javascript regex replace using $ with WebKit
Using $ to match end-of-input gives a zero-length match everywhere else but no evidence of a match with WebKit:
function showBug() {
Result = "the end.".replace( /(end\.)([\s]|$)?/img, makeChange ...
3
votes
1answer
305 views
Replace multiple captured groups in regex
VB2005: I've been looking at regex for some hours now and cant seem to get my head around the .Replace for my case. I'm looking for two fields and then I want to replace those fields with new values. ...
2
votes
1answer
88 views
Regex: Replace WITH REPEATED strings , not “replace repeat”
Could we replace a matched pattern with a REPEATED pattern USING regular expression?
For example :
the target string is "abc2:4def" , what I want is abc2222def, that means the "4" is a repeater in ...
2
votes
1answer
428 views
Parse and replace @usernames and URL's within iphone app
I'm working on a twitter app, and need some help. I would like to replace @usernames and URL's w/ bold blue text, and link to the corresponding views w/in my app. I'm able to parse the tweet text, ...
1
vote
1answer
83 views
regex replace words
I have a string $str defined like this:
$str = "Horosho byt' tihoney 23 Sen 2012 14:00 | 20:20 | 00:30 24 Sen 2012 09:30 | 14:00 Obitel' zla: Vozmezdie 3D 23 Sen 2012 16:10 | 20:25 | 22:25 Osobo ...
1
vote
1answer
255 views
javascript: find/replace regexp help - bold, italic and specific characters
the HTML/concept:
<textarea id="input"></textarea>
<button onclick="format()">submit</button>
<textarea id="output"></textarea>
I regularly ...
1
vote
1answer
240 views
iOS Phonegap regex replace
I might just be doing something obvious and dumb here, but I can get this code to work in the Chrome console, but when I run it in my phonegap app it just doesn't do anything.
I'm pulling in some ...
1
vote
0answers
65 views
freepascal regexp replace
Is there an easy way to do a RegExp replace in FreePascal/Lazarus?
Hunting around I can see that I can do a match fairly easily, but I'm struggling to find functions to do a search and replace.
What ...
1
vote
0answers
250 views
C++ Strip certain tags + replacing HTML special characters
I have a problem with striping XML tags(with propeties e.g <smth a="xxxx">important data</smth>). To do that I was using this
std::string ex = ...
1
vote
0answers
154 views
search, replace and regroup with regexp and php
I would like to search and replace some tags with regexp.
this is my starting string:
<p>some bla bla bla</p>
<p class="normale">•bla bla and bla</p><p ...
0
votes
0answers
51 views
Execute regexp_* functions on Oracle XE 11g
After installing Oracle XE 11g on Windows Vista I am unable to exeute any of the regex functions that come with Oracle. (regexp_replace, regexp_instr etc)
The documentation on features @
...
0
votes
0answers
43 views
How to regex replace URLS/Links that have different characters?
I have the wordpress plugins Search & Replace or Search Regex. Or I can do in SQL. But, I can't seem to get the correct format to replace my urls. How do I properly format it to replace a link ...
0
votes
0answers
163 views
Using perl to replace accented word with no accent and associated number
Any accented word needs the accent to be removed and then a corresponding number should be added at the end of the word
for example
gàr must appear as gar3
words will only show acute accent and ...
0
votes
0answers
185 views
Javascript Regex to match and replace tag brackets if tag is closed
I am copying html to a content editable on keyup and I want the html to be turned into html tags.
The contenteditable creates entities.
I figured I would use Javascript replace fn and it worked ...
0
votes
0answers
146 views
Firefox weird behavior on javascript replace with regexp
So i have a really nice regexp that cleans a copy made from doc and docx on javascript before save, that goes like this:
.replace(/<[^>]\{1,\}>/g,/[^[:print:]]\{1,\}/g)
Instead of a ...