On Fri, 2008-01-18 at 12:28 +0200, Nikolay Ananiev wrote:
> This is for double quotes:
> '/"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"/'
> 
> this is for single:
> '/\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\'/'
> 
> i took these from the smarty compiler class.

Has anyone started a commonly used PCRE Regexp library? It could be a
simple wiki page or something (we had one on our old site that was
getting quite large - but that is now gone - sigh)

Anyway, is anyone up for that? These things come up pretty often, and
having a library of common ones would save us all a lot of effort in
these types of threads. Something like:

Purpose: ....
regex  : ....
Author : ....


Thoughts? We could use
http://fsiu.uwc.ac.za/index.php?module=wiki&action=view_page&name=RegularExpressionMethods
 for it.

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to