
- 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 string containing a sequence of two to three p's.
To match any string containing a sequence of two to three p’s with JavaScript RegExp, use the p{2,3} Quantifier.
Example
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Welcome 1, 10, 100, 1000, 1000"; var reg = /\d{2,3}/g; var match = myStr.match(reg); document.write(match); </script> </body> </html>
- Related Articles
- Match any string containing a sequence of at least two p's.
- Match any string containing a sequence of N p's
- Match any string containing zero or more p's.
- Match any string containing at most one p.
- Match any string containing one or more p's with JavaScript RegExp.
- Match any string with p at the end of it.
- Match any string with p at the beginning of it.
- MySQL query to match any of the two strings from column values
- Select rows containing a string in a specific column with MATCH and AGAINST in MySQL
- How to match a line not containing a word in Java Regex
- Name any two diseases caused by drinking polluted water containing sewage.
- Regex to match lines containing multiple strings in Java
- Design a DFA of a string with at least two 0’s and at least two 1’s
- In the figure, common tangents \( P Q \) and \( R S \) to two circles intersect at \( A \). Prove that \( P Q=R S \)."\n
- How to match the names of a vector in sequence with string vector values in another vector having same values in R?

Advertisements