|
|
Browse by Tags
All Tags » replace » regex
-
I ran into an interesting situation where back references overwrite previous changes in a regular expression.
I needed a regular expression that updated a pattern but also checked for something that comes before the pattern. It should leave everything before the pattern as it was before the updates. There can be multiple matches of ...
-
Hi there,
I hope someone can help, cause I'm lost...
First of all I am working with C# and I have a (legacy) Regex I need to adjust. Actually I am using Regex.Replace to match an expression in a string and Replace it.
My current Regex.Replace looks like this:
query = Regex.Replace(query, ...
-
Hello,
I am able to find what I want by building my regex. Now I need to replace what matches with something related to it, I want to remove the quotation marks around where there is no space between two quotation marks.
TEXT:
<input type="text" name="text_field_21" value="Hello There!" />
so I ...
-
Hello everybody,
I almost feel bad about writing here - but I really tried for days now. I need a string filtered (matched) from a string like this:
@s My Company Ltd@o My-Street-adress 123@o New York@pt 123-35-144@t Mobile@pt 593-1195-1395
I am trying to filter out the company´s name (which always is from the beginning of ...
-
Hi,
I'm working in c# 1.1 so I have access to Regex.Replace (and even MatchEvaluators if that makes life easier) but I figure there must be a relatively simple regex way of doing this?
I have a set of strings which I need to remove (if they occur) within a string field on a database row. I figure that I can run a regex on ...
-
I can't do this serverside because it has to parse in the .htaccess first.
Basically, I have the following string:
RewriteRule ^([A-Za-z0-9_]+)$ index.php?word=$1
which makes:
mysite.com/this
go to
mysite.com/index.php?word=this
But, if someone puts in
mysite.com/what is this
it will error out.
I want it to convert all the ...
|
|
|