
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
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
ing!"; var reg = /^ing/m; var match = myStr.match(reg); document.write(match); </script> </body> </html>
- Related Articles
- How to perform Case Insensitive matching with JavaScript RegExp?
- How to perform string matching in MySQL?
- With JavaScript RegExp how to search a string for text that matches regexp?
- How to remove HTML Tags with RegExp in JavaScript?
- JavaScript multiline Property
- Find digit with JavaScript RegExp.
- What is MySQL REGEXP operator and how it handles pattern matching?
- How to create a multiline entry with Tkinter?
- How to perform Automated Unit Testing with JavaScript?
- How to replace string using JavaScript RegExp?
- How to create RegExp object in JavaScript?
- With JavaScript RegExp search a tab character.
- 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.

Advertisements