Copyright © tutorialspoint.com
Syntax
Definition and UsageThis match operator is used to match any keyword in given expression. Parentheses after initial m can be any character and will be used to delimit the regular expression statement. Regular expression variables include $, which contains whatever the last grouping match matched; $&, which contains the entire matched string; $`, which contains everything before the matched string; and $', which contains everything after the matched string. Return Value
ExampleTry out following example:
It will produce following results:
|
Copyright © tutorialspoint.com