[TYPO3-50-general] Package Key Guidelines

Jochen Rau j.rau at web.de
Mon May 5 11:15:19 CEST 2008


Hi Sebastian,

> Is the following Regular Expression OK?
> ^[A-Z][a-zA-Z0-9_]$

This RegEx won't work. At least you have to add a quantifier for the 
second expression, like:

^[A-Z][a-zA-Z0-9_]*$

But this RegEx matches faulty package keys like

"F3_____foo"

I'll try to develop a better solution and post it here.

BTW, a good testing facility for RegEx can be found here:

http://www.regex-tester.de/regex.html

Greetings
Jochen


More information about the TYPO3-project-5_0-general mailing list