JavaScript RegExp - p$



Description

p$ matches any string containing p at the end of it.

Example

Following example shows usage of RegExp expression.


   
      JavaScript RegExp
   
   
   
      
   

Output

Test 1 - returned value : p
Test 2 - returned value : null
Advertisements