Revision history for RegexLibrary
Revision [18802]
Last edited on 2008-01-28 00:12:36 by DarTar [Modified links pointing to docs server]No Differences
Additions:
>> This is a draft proposal for central library of regular expressions to be used by core methods for validation/recognition purposes.
//(stub)//
##**lib/regex.inc##**
/**
* Wikka Regular Expression Library
*
* Defines patterns and regular expressions to be used by core methods for categorizing and validating strings.
*
* @package RegEx
* @version $id$
*/
//character sets
define('PATTERN_LCLETTER', 'a-z\xe0-\xf6\xf8-\xff');
//stub
===Patterns already in use===
define('PATTERN_LCLETTER', 'a-z\xe0-\xf6\xf8-\xff');
~& Why not allow tags starting with digits as some users requested? -- DarTar
//(stub)//
##**lib/regex.inc##**
/**
* Wikka Regular Expression Library
*
* Defines patterns and regular expressions to be used by core methods for categorizing and validating strings.
*
* @package RegEx
* @version $id$
*/
//character sets
define('PATTERN_LCLETTER', 'a-z\xe0-\xf6\xf8-\xff');
//stub
===Patterns already in use===
define('PATTERN_LCLETTER', 'a-z\xe0-\xf6\xf8-\xff');
~& Why not allow tags starting with digits as some users requested? -- DarTar
Deletions:
~& Why not allow tags starting with digits as some users requested? Consider though that a pattern as the one above won't allow any more automatic CamelCase parsing --DarTar
Revision [13573]
Edited on 2006-03-20 15:23:13 by DarTar [copying proposed RE pattern for valid tag]Additions:
~& Why not allow tags starting with digits as some users requested? Consider though that a pattern as the one above won't allow any more automatic CamelCase parsing --DarTar
Deletions:
Revision [13572]
Edited on 2006-03-20 15:22:05 by DarTar [copying proposed RE pattern for valid tag]Additions:
~& Why not allow tags starting with digits as some users requested?
Deletions:
Revision [13571]
Edited on 2006-03-20 15:21:49 by DarTar [copying proposed RE pattern for valid tag]Additions:
define('PATTERN_DIGIT', '0-9');
Deletions:
Revision [13570]
Edited on 2006-03-20 15:21:03 by DarTar [copying proposed RE pattern for valid tag]Additions:
==Proposed RE for valid WikiName ==
define('PATTERN_UCLETTER', 'A-Z\xc0-\xd6\xd8-\xdf');
define('PATTERN_LETTER', PATTERN_LCLETTER.PATTERN_UCLETTER);
define('PATTERN_DIGIT', '0-9');%%
$validtag = '/^['.PATTERN_LETTER.']['.PATTERN_LETTER.PATTERN_DIGIT.']+$/';
~-& Why not allow tags starting with digits as some users requested?
define('PATTERN_UCLETTER', 'A-Z\xc0-\xd6\xd8-\xdf');
define('PATTERN_LETTER', PATTERN_LCLETTER.PATTERN_UCLETTER);
define('PATTERN_DIGIT', '0-9');%%
$validtag = '/^['.PATTERN_LETTER.']['.PATTERN_LETTER.PATTERN_DIGIT.']+$/';
~-& Why not allow tags starting with digits as some users requested?
Additions:
>>**See also**
[[ValidPageNames Pagename validation]]
>>
[[ValidPageNames Pagename validation]]
>>
Additions:
CategoryDevelopmentCore CategoryRegex
Deletions:
Additions:
%%/^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/%%
%%(php)
%%(php)
%%(php)
%%(php)
Deletions:
Revision [7844]
Edited on 2005-05-03 16:06:08 by DarTar [First draft, please help fill in the missing entries]Additions:
===== Regular Expression Library =====
==URI components==
==Valid WikiName ##(as of 1.1.6.0)##==
==Valid InterWiki Link ##(as of 1.1.6.0)##==
==External sites:==
~-[[http://www.regexlib.com/ Regular Expression Library]]
==URI components==
==Valid WikiName ##(as of 1.1.6.0)##==
==Valid InterWiki Link ##(as of 1.1.6.0)##==
==External sites:==
~-[[http://www.regexlib.com/ Regular Expression Library]]
Deletions:
===Valid URI===
===Valid WikiName ##(as of 1.1.6.0)##===
===Valid InterWiki Link ##(as of 1.1.6.0)##===
Revision [7843]
Edited on 2005-05-03 15:56:18 by DarTar [First draft, please fill in the missing entries]Additions:
===Valid InterWiki Link ##(as of 1.1.6.0)##===
Deletions:
Revision [7840]
Edited on 2005-05-03 15:44:02 by DarTar [First draft, please fill in the missing entries]Additions:
===Valid WikiName ##(as of 1.1.6.0)##===
===Valid Interwiki Link ##(as of 1.1.6.0)##===
===Valid Interwiki Link ##(as of 1.1.6.0)##===
Deletions:
===Valid Interwiki Link (1.1.6.0)===