1.

What are the properties of RegExp object?

Answer»

Following are the properties of RegExp object −

  • Pattern − The Pattern method represents a string that is used to define the regular expression and it should be set before using the regular expression object.

  • IgnoreCase − A Boolean property that represents if the regular expression should be tested against all possible matches in a string if true or false. If not specified explicitly, IgnoreCase value is set to False.

  • Global − A Boolean property that represents if the regular expression should be tested against all possible matches in a string. If not specified explicitly, Global value is set to False.



Discussion

No Comment Found