JavaScript

Using RegEx in JavaScript1 min read

In this post you can learn how to create a regular expressions in javaScript.

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.




To use regular expression in javascript you can use the RegExp object:

Or you can directly creates its instance by using special syntax
To test a string against a RegExp
If you want to extract multiple matched from the input string

Leave a Comment