|
|
Browse by Tags
All Tags » php regular expression
Showing page 1 of 2 (20 total posts)
-
Hello everyone,
I'm pretty new to regexes and I've got a small problem. I have the following regex: (?<=lblVacant">(ab )?)([\d,.\/]+)(?=(<\/span>|\s\-)) which should match ose1_DetailEstateData1_lblVacant">06.08.2009 - 30.10.2009</span></td>
ailEstateData1_lblVacant">10.08.2009 - ...
-
I have been working with php and regular expressions to separate string addresses into their components, and I have come across a problem...
Normally, addresses follow the format:
[Address], [City], ON, [Postal Code]
I am only dealing with addresses in Canada, specifically in Ontario (hence the ON)
I was using preg_match and the regular ...
-
Hello RegexAdvice users.
I am at this time trying to update my template system, and i have desidet to use regex insted of ALOT of explodes :D
I this i will start out with showing you what my templates look like.
code:<html>
<head>
<title>Some test</title>
</head>
<body>
<php:if ...
-
Hi,
Anybody out there, I'd be immensly greatful if you helped me fix one regular expressions of mine.
Basically I've written a regular expression in PHP identifying a pattern of a certain type of URL
REGEX: /(http\:\/\/dx\.doi\.org\/.*?)(\s|$|;|>)/
it will catch strings of URLs from the 'http://dx.doi.org/' domain, looking ...
-
Hello how's everyone doin'? I need help with the regular expression in PHP (using preg_match_all) that would extract the url and the image of these two:
<A HREF="movie1.mpg"><img name="movie1" src="images/tn_01.jpg" width="320" height="240" border="0" alt="Play ...
-
Hello how's everyone doin'? I need help with the regular expression in PHP (using preg_match_all) that could extract the url and the image of these two:
<A HREF="movie1.mpg"><img name="movie1" src="images/tn_01.jpg" width="320" height="240" border="0" alt="Play ...
-
It's OK, I think I've found the answer to my own question. The # signs bracket the actual regular expression, and the e and the s are modifiers - e is equivalent to PREG_REPLACE_EVAL and s is equivalent to PCRE_DOTALL. Maybe these are things which are so familiar to the experienced players that they almost go without saying, but ...
-
I have a problem which seems similar to the one documented here, so I hope somebody reading this can help me too. I have a page of PHP code which works some of the time, but not always, so I'm trying to discover the bugs in it. It includes the line
preg_match_all('#<!-- start content -->(.*?)<!-- end content -->#es', ...
-
I have the following regex statement I'm trying to run in PHP.
(?<!(end\s?zone|lower|upper)\s?)(view)
Testing against the following string: (matches in bold)
"The endzone view goes hi upper view and he goes view and then goes view and view and view!!!"
Notice "upper view" and "endzone view" are ...
-
Hi,
I am using PHP5 on a XAMP installation.
I am trying to extract a specific variable from a querystring (which is stored in my MySQL DB)
The format of the string is always consists of the same parameters (p, x & y), however sometimes they could be in a different order.
A sample querysting is below and I am ...
1
|
|
|