r3 - 26 Apr 2005 - 10:22:11 - CrawfordCurrieYou are here: TWiki >  Codev Web > ExportMoreRegexes
Tags:
, create new tag
The set of regexes currently exported by TWiki::Func::getRegularExpression is unreasonably limited. You can currently only legally get a few character classes and the wikiword RE. There is a clear need to export other REs for plugins. The proposal here is to change the set of exported REs as follows. The italicised ones are new:

Name Matches Type
upperAlpha Upper case characters String
upperAlphaNum Upper case characters and digits String
lowerAlpha Lower case characters String
lowerAlphaNum Lower case characters and digits String
numeric Digits String
mixedAlpha Alphabetic characters String
mixedAlphaNum Alphanumeric characters String
wikiWordRegex WikiWords RE
webNameRegex User web names RE
anchorRegex #Anchor_Names RE
abbrevRegex Abbreviations e.g. GOV, IRS RE
emailAddrRegex email@addressPLEASENOSPAM.com RE

Rationale: these are all either useful for internationalisation, or or valid TWiki concepts that are already documented and are reasonable to export. Several are already unofficially used by plugins.

Done in DevelopBranch r3730

-- CrawfordCurrie - 04 Mar 2005

Thanks Crawford, sensible enhancement smile

-- PeterThoeny - 06 Mar 2005

Added

tagNameRegex Standard tag names e.g. %THIS_BIT% (THIS_BIT only) RE
-- CrawfordCurrie - 26 Apr 2005

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo