

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Match any single character in the given set.
To match any single character in the given set with JavaScript RegExp, use the [aeiou] metacharacter.
Example
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Welcome to our website!"; var reg = /[we]/g; var match = myStr.match(reg); document.write(match); </script> </body> </html>
- Related Questions & Answers
- Match any single character outside the given set.
- How to match any character using Java RegEx
- Java Program to check if the String contains any character in the given set of characters
- How to match a single character in python using Regular Expression?
- How to match any one uppercase character in python using Regular Expression?
- How to match any non-digit character in Python using Regular Expression?
- Set the default character set in MySQL
- How to match a character from given string including case using Java regex?
- Match Unicode character specified by the hexadecimal number XXXX.
- Match any string with p at the end of it.
- Match any string with p at the beginning of it.
- Match any string containing at most one p.
- MySQL query to match any of the two strings from column values
- How to match one character in MySQL in place of %?
- Check if any two intervals overlap among a given set of intervals in C++
Advertisements