dlclark / regexp2

A full-featured regex engine in pure Go based on the .NET engine
MIT License
997 stars 84 forks source link

What are the valid values for RegexOptions? #22

Closed Manaswi94 closed 5 years ago

Manaswi94 commented 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.

Could some one please provide the values for RegexOptions or point me to the documentation where I can find it?

jhngrant commented 5 years ago

GoDoc:

https://godoc.org/github.com/dlclark/regexp2#pkg-constants

Manaswi94 commented 5 years ago

@jhngrant Thank you.

Sean-Pollitt commented 1 year ago

Are we able to use options? i.e. use ECMAScript and IgnoreCase?

dlclark commented 1 year ago

@dotslash-Gatsby yes, just "or" the options together: regexp2.ECMAScript | regexp2.IgnoreCase to enable both flags.