![]() |
JavaScript RegExp flags property is an accessor property that returns the flags being used in the Regular Expression. The flags are returned in alphabetical order and the result is a concatenation of strings. Syntax: Regexobj.flags
Return Type: A string containing flags used in Regular Expression. Example 1: This example prints the flags used in Regular Expression on the console. Javascript
Output
ms Example 2: This example prints the flags used in Regular Expression. Javascript
Output
The flags are: ds Supported Browsers:
We have a complete list of JavaScript RegExp expressions, to check those please go through this JavaScript RegExp Reference article. |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |