Closed Manaswi94 closed 5 years ago
Compile method takes in regular expression and RegexOptions. https://godoc.org/github.com/dlclark/regexp2#Compile
I have checked the documentation and I could not find valid values for RegexOptions.
RegexOptions
Could some one please provide the values for RegexOptions or point me to the documentation where I can find it?
GoDoc:
https://godoc.org/github.com/dlclark/regexp2#pkg-constants
@jhngrant Thank you.
Are we able to use options? i.e. use ECMAScript and IgnoreCase?
ECMAScript
IgnoreCase
@dotslash-Gatsby yes, just "or" the options together: regexp2.ECMAScript | regexp2.IgnoreCase to enable both flags.
regexp2.ECMAScript | regexp2.IgnoreCase
Compile method takes in regular expression and RegexOptions. https://godoc.org/github.com/dlclark/regexp2#Compile
I have checked the documentation and I could not find valid values for
RegexOptions
.Could some one please provide the values for
RegexOptions
or point me to the documentation where I can find it?