|
|
Browse by Tags
All Tags » pcre
Showing page 1 of 2 (16 total posts)
-
Platform: PCRE
Purpose: am trying to teach myself a little PCRE. In particular an expression has been nagging me:
<?php
$text="this-that <a href=\"http://www.my-site.com/index.php\">this-that</a> ...
-
According to the documentation the 'u' modifer is for UTF8 not Unicode. It treats the sring as UTF8.
Doc:
u (PCRE_UTF8)
This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern strings are treated as UTF-8. This modifier is available
from PHP 4.1.0 or greater on Unix and from PHP 4.2.3 on win32. ...
-
First off let me say I'm a bit over my
head here. Not regex part but host the language of the regex engine.
Many moons ago I posted a blog article
stating why you could not write a regex that validated an e-mail
address 100%. Well this is still true, however in that
posted I also stated that the pattern was so massive ...
-
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 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,
Programming language: Delphi with pcre-compatible component
The question is: Split the SQL-statement items to:
-type (select|insert|delete|truncate table)
-distinct mode if exist (is disitinct|is not distinct)
-top if exist (top statement - rows or persent)
-join if exist (type of join, cross-table and cross-condition)
Thats what I ...
-
Hello, this is my first post so bear with me. I made a quick search through the forum and found nothing, so any feedback is appreciated.
Recently I have been studying spam using regular expressions in a mail proxy called SpamPal to cleanly divide each message into folders that best describe their characteristics. I feel I grasp the basics of the ...
-
I am using pcre regex. And i need to find out if two strings are of equal length or not. Any idea how it can be accomplish.
An example of match would be
abcd 1234
here abcd and 1234 will match because they have same length. but
abcd abcde
would not match because length is different.
I can only use regex for this purpose.
-
I am using C (actually Objective-c on a Mac, but that is not important) and PCRE to run several regex's over a text file. A typical pattern looks something like
\s* ((keyword1|keyword2|keyword3) \s+)? ([a-z][a-z0-9_]*)
In other words, look for any number of keywords (including none) that are separated by spaces and then look for something ...
-
kyeno:
Wow, it works m8.
Thanks a lot! Been tryin to solve it with a friend of mine for about 3 hours...
Always happy to help.
kyeno:
Looks i'll have to master the PCRE syntax.
Any good sites about it You could recommend? I mean like step-by-step tutorials for noobs. :)
As I mentioned in another thread several minutes ago ...
1
|
|
|