On Nov 29, 2012, at 5:25 AM, Lucas Betschart <[email protected]> wrote:

>> 
>> What programming language do you use?
>> 
>> 
> PHP. But any regex would be welcome. It shouldn't be hard (if even
> necessary) to port a regex.

There is no regex that will suffice for properly validating JIDs; proper 
preparation and validation of JIDs requires a fair amount of logic.

Fortunately, there are implementations available, but they're not PHP specific. 
 The two most popular C-based ones I'm aware of are libIDN and ICU4C.  It 
appears there are PHP wrappers for both out there.


- m&m

Matthew A. Miller
< http://goo.gl/LK55L >

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

Reply via email to