&
Best unofficial Apache Server developers community
Username
Remember me?
Password
Forgot password?
Create an account
List archives
Videos
Answers
Questions
Unanswered
Tags
Ask Question
regex
1
vote
2
answers
47
views
Is mysql_real_escape_string() sufficient for a MySQL REGEXP?
Could $user_input in the following code be chosen to make the MySQL query not behave as expected? <? $regexp = mysql_real_escape_string(…
php
mysql
regex
mysql-real-escape-string
asked
June 25, 2011 12:45 pm CDT
Tim Nordenfur
1
vote
4
answers
47
views
Does "\d" in regex mean a digit?
I found that in 123 , \d matches 1 and 3 but not 2 . I was wondering if \d matches a digit satisfying what kind of requirement? I am talking about…
python
regex
asked
June 25, 2011 12:33 pm CDT
Tim
1
vote
0
answers
33
views
Is there a better way to perform URL pattern matching in C++ than iteration?
I have a pattern matching routine that looks up values from a std::map based on the URL used to request the command. The URL mapping table is filled…
c++
regex
pattern-matching
tr1
asked
June 25, 2011 11:45 am CDT
JimEvans
0
votes
3
answers
37
views
Match a line without number followed by "."
Update: I would like to match a line, started with (" followed by a number and then anything except "." . For example ("10 Advanced topics 365"…
regex
asked
June 25, 2011 11:40 am CDT
Tim
1
vote
0
answers
39
views
How to identify and Remove any type of Bullet in the Text
I am copyig some data from the MS Word. That text may contain or May not contain Bullets in the copied text. But i need a Regular expression in…
javascript
regex
asked
June 25, 2011 11:32 am CDT
Prathap Reddy
0
votes
3
answers
28
views
I need a regex to match first sentence of the string
I'm trying to come up with a regex which would match the first sentence of the string. I don't need anything too complex, just a sentence that ends…
regex
asked
June 25, 2011 11:24 am CDT
Caballero
1
vote
0
answers
36
views
Regular expression matching E.164 formatted phone numbers
I need to add a regular expression that matches all possible valid E.164 formatted phone numbers. This regex works fine for for North American phone…
regex
asked
June 25, 2011 11:01 am CDT
Sean W.
2
votes
4
answers
45
views
Matching keys and values in a string with a regular expression
I am trying to figure out how to match a pattern in this string: "Red|1|White|7|Blue|27|Green|56" As you can see, the numbers can be either 1 or 2…
javascript
regex
asked
June 25, 2011 11:00 am CDT
user815460
2
votes
2
answers
50
views
Extracting a 'word' matching certain criteria.
I have the following string: SEDCVBNT S800BG09 7GFHFGD6H 324235346 RHGF7U S8-00BG/09 7687678 and the following regex:…
php
regex
preg-match-all
asked
June 25, 2011 9:59 am CDT
Dave
0
votes
1
answer
46
views
Locating string literals in C++ source with regex, but not includes?
I want to introduce i18n in an existing application. As a first step, I need to replace the string literals with tr("something") . I have created…
regex
qt
internationalization
qt-creator
asked
June 25, 2011 8:57 am CDT
Tamás Szelei
0
votes
1
answer
37
views
PHP: regex match phrase not containing specific word
I'm getting tired of looking around for a close enough example, time for some quick help! Here is my code: preg_match_all(…
php
regex
ignore
importance
asked
June 25, 2011 7:59 am CDT
Dark Slipstream
2
votes
1
answer
38
views
Separate numbers, unknowns and mathematical symbols
I have a string like this: x+1=13-x What I have to do, is separate the unknown ( x ) from mathematical symbols ( + , - , * , : or / ) and numbers.…
php
regex
asked
June 25, 2011 7:43 am CDT
user726049
0
votes
1
answer
45
views
PHP: How to convert comma separated strings of grade levels to english-readable "grade ranges"?
I have a string (not an array) of grade levels for a student. Here are some examples of possible entries: k,1,2,3,4,5 1,2,3,4 1 1,2 3,4,5 Maximum…
php
regex
csv
explode
asked
June 25, 2011 7:25 am CDT
k00k
0
votes
2
answers
33
views
C# Replace string with does contains unknown parts
I have a File, which contains text. Now, I have to replace some string with another. For Example I have to replace "[ContactLetterSalutation]" with…
c#
regex
string-replacement
asked
June 25, 2011 7:17 am CDT
t.kehl
0
votes
0
answers
40
views
Match everything not in tag <div>
I need regex that will match everything not in tag. For example: foobar<p>lol</p><div>something</div>blahblah Should match…
regex
perl
asked
June 25, 2011 6:22 am CDT
anonymous
1
vote
0
answers
43
views
WP rewrite, regular expression question
There are many regular expression questions on here already, but I it's not exactly easy to find what you want to find, so here goes my question.…
regex
wordpress
rewrite
asked
June 25, 2011 4:47 am CDT
Calle
-1
votes
1
answer
32
views
Regx expression for Telephone no with country code included
I need to validate a telephone number in the following format xx-xxx-xxxxxx x can only be a digit and all x can't be zero.
regex
validation
asked
June 25, 2011 3:57 am CDT
Ravi Krishan
0
votes
1
answer
30
views
Find string pattern and replace it~
updating info~ I have a bunch of html string.(Raw String) Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras a egestas lacus. Praesent…
php
regex
asked
June 25, 2011 3:28 am CDT
Jinbom Heo
0
votes
0
answers
39
views
Reg ex group and sub group
Is it possible to use regex to capture a whole phrase as well as each word in the phrase concatenated? So for : smith jones To return:…
regex
lucene
solr
asked
June 25, 2011 3:21 am CDT
PhilHoy
0
votes
2
answers
62
views
Help constraining regex search in python
I'm trying to capture all instances of "Catalina 320" SO LONG as they occur before the "These boats" string (see generic sample below). I have the…
python
regex
asked
June 25, 2011 1:56 am CDT
jond
Pages
:
1
|
2
|
3
|
4
|
5
>
[352]
7035
regex
Tagged:
regex
Related Tags
php
× 1423
javascript
× 860
c#
× 713
java
× 621
python
× 464
perl
× 344
ruby
× 283
string
× 230
.net
× 226
jquery
× 225
html
× 174
preg-replace
× 165
preg-match
× 153
asp.net
× 142
string-manipulation
× 127
replace
× 124
parsing
× 124
validation
× 110
sed
× 108
url
× 106
mysql
× 103
.htaccess
× 102
mod-rewrite
× 101
bash
× 92
grep
× 92
ruby-on-rails
× 87
pattern-matching
× 78
c++
× 69
match
× 68
English
Russian
Copyright 2007 - 2012
Best unofficial Apache Server developers community
Privacy policy