regex - Lower and Upper Case Regular Expression Patterns -
i not familiar regular expressions.
i have following regular expression c-(move|store)-(rsp|rq)
match patterns , matches following strings:
c-move-rsp c-store-rsp c-move-rq c-store-rq
i make such case insensitive. match string
c-move-rsp c-move-rq ... ..
i guessing should pretty straight forward of experienced regular expressions.
i have tried c-/(move|store)/i-/(rsp|rq)/i
has not worked me.
thanks help
like this:
/c-(move|store)-(rsp|rq)/i
the flag applies entire regex.
in python, groovy, write:
(?i)c-(move|store)-(rsp|rq)
Comments
Post a Comment