Other Resources:
Multiple line modifier - m
What is the multiple line modifier? How to use it?
How the multiple line modifier can be used on this example text:
✍: FYIcenter.com
The multiple line modifier 'm' modifies the behavior of the regular expression. When 'm' is specified, the subject string will be treated as as multiple lines instead of a single line. In other words,
For example, '^(.*)$' will produce multiple matches, one match per line, if the subject string has multiple line breaks and multiple line modifier 'm' is specified.
With the given example subject string, we can use this regular expression: to capture the date in each line with multiple line modifier, 'm', specified:
2013-02-02, 0👍, 0💬
Popular Posts:
How to write a regular expression to parse key-value entries from Windows .INI files? Here is an exa...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
All credit card numbers issued by JCB have 3 sets of numbers: JCB cards start with 2131 have 15 digi...
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...