

- 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 string with p at the end of it.
To match any string with p at the end of it with JavaScript RegExp, use the p$ Quantifier.
Example
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Welcome to our website! Welcome"; var reg = /me$/g; var match = myStr.match(reg); document.write(match); </script> </body> </html>
- Related Questions & Answers
- Match any string with p at the beginning of it.
- Match any string containing at most one p.
- 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 one or more p's with JavaScript RegExp.
- Match any string containing a sequence of two to three p's.
- How to match at the end of string in python using Regular Expression?
- How to match text at the start or end of a string in Python?
- Align flex items at the end of the container with CSS
- Match optional end of line after every record with REGEXP?
- How to create a string vector with numbers at the end in R?
- How to match end of a particular string/line using Java RegEx
- How to match at the beginning of string in python using Regular Expression?
- How to match end of the input using Java RegEx?
Advertisements