
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Perform Multiline Matching with JavaScript RegExp
To perform multiline matching, use the M modifier available in JavaScript Regular Expression.
Example
You can try to run the following code to perform multiline matching −
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Welcom
ing!"; var reg = /^ing/m; var match = myStr.match(reg); document.write(match); </script> </body> </html>
Advertisements