homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Regular Expressions in JavaScript

 6:33 pm on Oct 21, 2002 (gmt 0)

I have been searching the web for samples of a regular expression validator for a text feild. I haven't found any. All of them check e-mail addresses. I am trying to make sure that an entered value is a float and between 0 - 24. This includes all decimels in between. Does anyone know an example for this or a script.



 10:57 pm on Oct 21, 2002 (gmt 0)

Does this link offer you any help? I know there's a RegExp object in JavaScript 1.2, but I'm not personally conversant with it.

Regular Expressions and Javascript 1.2 [tech.irt.org]


 11:03 pm on Oct 21, 2002 (gmt 0)

I wonder why there is so little on this. I am scrubbing inputs for a web application and what you have found is the best I've seen so far. I never really used regular expressions much but I have never really done client side validation. I thought this was one of JavaScripts most powerful aspects.


 12:30 am on Oct 22, 2002 (gmt 0)


Have you tried the documentation on the Netscape developer web site? - It's fairly deep.


Purple Martin

 12:44 am on Oct 22, 2002 (gmt 0)

By coincidence, I was looking for some info on regexp syntax this morning, and I found what I needed in this article [webmasterbase.com]. It starts off fairly basic, but goes on to cover most of the important stuff.

Purple Martin

 2:15 am on Oct 22, 2002 (gmt 0)

I've also just remembered that there's a very good chapter on regular expressions on the CD that accompanies the book JavaScript Bible by Danny Goodman.


 11:33 am on Oct 22, 2002 (gmt 0)

Thanks everyone. Netscape's info and the JavaScript bible stuff got me what I needed.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved