Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » pcre
Showing page 1 of 2 (14 total posts)
  • Validating Email Revisited

    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 ...
    Posted to Michael Ash's Regex Blog (Weblog) by mash on September 28, 2008
  • Re: Regex for unknown number of lines - Assistance Request

    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 ...
    Posted to Construction Advice (Forum) by mtgradwell on June 8, 2008
  • Problem with negative lookbehind in PHP PCRE Library.

    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 ...
    Posted to Construction Advice (Forum) by simshaun on May 6, 2008
  • SQL Statement split

    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 ...
    Posted to Construction Advice (Forum) by Ilway on March 18, 2008
  • Anomaly Filtering

    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 ...
    Posted to Construction Advice (Forum) by Synq on March 15, 2008
  • comparing lengths of strings

    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.
    Posted to Construction Advice (Forum) by red_devil on August 21, 2007
  • How to save repeated subpattern captures with PCRE

    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 ...
    Posted to Construction Advice (Forum) by Aussie Susan on May 23, 2007
  • Re: Parsing HTML table with regex (PHP). Getting the first <td> inner contents.

    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 ...
    Posted to Construction Advice (Forum) by eSquire on April 26, 2007
  • Re: Parsing HTML table with regex (PHP). Getting the first <td> inner contents.

    I understand that you want to match all the category names, i.e. the content of every <td></td> after an <tr>. If I remember correctly, PHP's POSIX extended regular expressions don't know ungreedy quantifiers. I prefer Perl Compatible Regular Expressions (PCRE) anyway ...
    Posted to Construction Advice (Forum) by eSquire on April 26, 2007
  • Rewriting a regexp to avoid segmentation fault in php

    Hello, I have written a regular expression that I think is syntactically correct but it when used with some versions of php it will cause a segmentation fault. While PCRE Version 7 is being accused for this bug it's not of much help to me. I am wondering if perhaps there is a way to rewrite the expression. Maybe someone has ideas on an ...
    Posted to Construction Advice (Forum) by kajic on April 21, 2007
1 2 Next >