

- 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
How to 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\ning!"; var reg = /^ing/m; var match = myStr.match(reg); document.write(match); </script> </body> </html>
- Related Questions & Answers
- How to perform Case Insensitive matching with JavaScript RegExp?
- How to perform string matching in MySQL?
- JavaScript multiline Property
- With JavaScript RegExp how to search a string for text that matches regexp?
- Find digit with JavaScript RegExp.
- How to create a multiline entry with Tkinter?
- What is MySQL REGEXP operator and how it handles pattern matching?
- How to create RegExp object in JavaScript?
- How to replace string using JavaScript RegExp?
- With JavaScript RegExp search a tab character.
- How to perform Automated Unit Testing with JavaScript?
- C++ Program to Perform String Matching Using String Library
- With JavaScript RegExp find a character except newline?
- With JavaScript RegExp search a vertical tab character.
- With JavaScript RegExp search a carriage return character.
Advertisements