Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- A Universal Script for Javascript Form Validation


Fotiman - 6:08 pm on Sep 24, 2008 (gmt 0)


Unlike httpwebwitch, I do think there are cons to using regex. The most obvious being that it's a very complex and intimidating language. My assumption is that you wanted something simple that anyone could use... regex is not the answer if that's the case.

If it were me, I'd probably do both. Create a simple language with a very minimal set of tokens (not forgetting something to escape those tokens) and let your program use either a string containing your simple-language pattern or a RegEx object.

2 cents.


Thread source:: http://www.webmasterworld.com/javascript/3749043.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com