[TYPO3-project-formidable] Create some custom renderlets, actionlets, .
Jerome Schneider
typo3dev at ameos.com
Thu Jun 22 11:19:06 CEST 2006
Hello, Jeremy !
Thanks again, nice job :)
Are you OK for your work being included in the BASE pack of formidable ?
And in which terms ?
Jerome
"Jérémy Lecour" <jeremy.lecour at gmail.com> a écrit dans le message de news:
mailman.8135.1150733028.17090.typo3-project-formidable at lists.netfielders.de...
> Thank you for this nice publication, Jeremy.
> Have you got some example on how tu use it ? ( I mean, some useful regex
> ? )
You can use any regular expression valid witth PREG syntax.
You already made a validator for e-mail adresses, but if it didn't
exist, you could have used a regex to validate them through this
validator.
I don't have any useful regex in mind. Many websites make searchable
libraries for ready-to-use regex, like : zip codes, web URLs, phone
numbers, Social Security numbers,
It's important to give a full regex pattern to the validator,
including slashes,
I mean that if you want to check an numeric-only
value, you have to give make that :
<validator:PREG>
<pattern>
<value>/^[0-9]+$/</value>
<message>The value is not numeric</message>
</pattern>
</validator:PREG>
Maybe it could be a good idea to include this in the Main validator
class, because it is very generic and could be useful in many
situations.
--
Jérémy Lecour : <mailto:jeremy.lecour at gmail.com>
webdesigner, webmaster et développeur web
Trésorier du PLUG : Provence Linux User Group
http://www.plugfr.org/
More information about the TYPO3-project-formidable
mailing list