[TYPO3-50-general] Package Key Guidelines
Xavier Perseguers
typo3 at perseguers.ch
Mon May 5 12:24:28 CEST 2008
Hi,
>> ^[A-Z][a-zA-Z0-9_]*$
> Whoops, you are right, I already implemented it like this, but forgot to
> add the * here :-)
>> But this RegEx matches faulty package keys like
>>
>> "F3_____foo"
> That's true. I am not even sure if we really allow underscores? That's
> why I asked here.
I do not know why you wish to change the specification from the 4.x
branch but the spec (http://typo3.org/extensions/extension-keys/) has
some good points I think:
* Avoid underscores
* All in lowercase
I would add that number should not be allowed alone but only together
with at least a letter. Thus I would say something like
^[a-z](_?[a-z][0-9]*)+$
would be a starting point
> a good testing facility for RegEx can be found here:
> http://www.regex-tester.de/regex.html
This tool is easier to use I think:
http://www.fileformat.info/tool/regex.htm
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-project-5_0-general
mailing list