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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -