Extend RegexType to have a second instance out of the box that is a case-insensitive pattern. See how StringType does it similarly for the lowercase String.
To do
Extract the pattern compilation into a separated protected method (similar to StringType#transformToString)
Add a second constant to RegexType that will create a pattern with Pattern.compile(string, Pattern.CASE_INSENSITIVE)
Extend RegexType to have a second instance out of the box that is a case-insensitive pattern. See how
StringType
does it similarly for the lowercase String.To do
StringType#transformToString
)Pattern.compile(string, Pattern.CASE_INSENSITIVE)