Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Match any single character outside the given set.
To match any single character outside the given set with JavaScript RegExp, use the [^aeiou] metacharacter.
Example
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Welcome!"; var reg = /[^lc]/g; var match = myStr.match(reg); document.write(match); </script> </body> </html>
Advertisements
