Subscribe
Tutorial search

Using RegEx (Regular Expressions) in JavaScript - JavaScript tutorial


Javascript has built-in support for regular expression in almost all browsers. This means you can use regular expression at client side too. You can use to validate the user’s input data at client side itself to reduce the server side processing, however you may want to check those at server side too for security problems.
Category: JavaScript > Basics - Difficulty:


More cool JavaScript tutorials:



Text Box Characters Counter
Text Box Characters Counter
In forms when using text boxes or text areas with limited character length (usually needed for forms that submit data to a database) it is always a good idea to tell the user how many characters they have remaining. The following example shows how you can do this. This is a very simple and cute idea to help the user know exactly how many characters he can type further. Do these small add-ons to your forms and they will look really professional.
Difficulty:
Very Simple AJAX
Very Simple AJAX
This is a very simple method for using AJAX with your web applications.
Difficulty:
Displaying self updating time on a webpage
Displaying self updating time on a webpage
Learn how to use the setTimeout function, and display time on a web page, using very little code! Easy for beginners!
Difficulty:
Sorting JavaScript Arrays
Sorting JavaScript Arrays
Learn how to sort arrays in JavaScript.
Difficulty:
How To Build a Sliding Feature Slideshow with jQuery
How To Build a Sliding Feature Slideshow with jQuery
Javascript slideshows are one of the best ways to display lots of information in a relatively small space while adding cool functionality to a web page. Let’s build our own slideshow with sliding panels navigatable by button links. You could use the slideshow to showcase featured content on your homepage, or as a simple image gallery. Either way it’s quick and easy to create with the help of a couple of handy jQuery plugins.
Difficulty: