- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 string containing a sequence of at least two p's.
To match any string containing a sequence of at least two p’s with JavaScript RegExp, use the p{2,} Quantifier.
Example
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Welcome 1, 10, 100, 1000"; var reg = /\d{2,}/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 two to three p's.
- Match any string containing a sequence of N p's
- Match any string containing at most one p.
- Match any string containing zero or more p's.
- Design a DFA of a string with at least two 0’s and at least two 1’s
- Match any string with p at the end of it.
- Match any string with p at the beginning of it.
- Match any string containing one or more p's with JavaScript RegExp.
- Get at least one match in list querying with MongoDB?
- Select rows containing a string in a specific column with MATCH and AGAINST in MySQL
- Make the sample space of tossing two coins simultaneously and find the probability of:1. Exactly two heads2. At least one head3. At least one tail4. At most two tails
- Three different coins are tossed together. Find the probability of getting: $( i)$ exactly two heads $( ii)$ at least two heads $( iii)$ at least two tails.
- Program to check every sublist in a list containing at least one unique element in Python
- MySQL query to match any of the two strings from column values
- Name any two diseases caused by drinking polluted water containing sewage.

Advertisements