
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
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 Articles
- Match any single character outside the given set.
- How to match any character using Java RegEx
- How to match a single character in python using Regular Expression?
- Java Program to check if the String contains any character in the given set of characters
- How to match any one uppercase character in python using Regular Expression?\n\n
- How to match any non-digit character in Python using Regular Expression?\n\n
- 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.
- How to match one character in MySQL in place of %?
- Match the organisms given in column I with the processes given in column II:
- Match the terms given in column I with the statements given in column II.
- Match the objects given in column I with the materials given in column II.
- Match the reactions given in Column (A) with the names given in column (B).
- Match any string with p at the end of it.

Advertisements