Edit: Sorry! I should have mentioned this before. In your answers, please don’t assume that the items listed below are the only things in the directory I’m searching through. These are the things I want to match with the exception of the two specified. Thanks.
This should be really easy, but everything I try just isn’t doing the trick. I have the following items I need to match something to:
bodipr2__ds_di_uat
bodipr2__ds_dw_uat
bodipr2__ds_iq_uat
bodipr2__ds_iq_uat_back
bodipr2__ds_itsys_uat
bodipr2__ds_ppp_uat
bodipr2__ds_psd_uat
bodipr2__ds_usage_uat
bodits2__ds_pef_tst
bodits2__ds_ppp_tst
bodits2__ds_pri_tst
Except I want to omit the two which contain _iq_. So I wrote an expression like this:
bodi.*?__ds[^_iq_]
But that omits all of them. If I try this:
bodi.*?__ds_[^iq]
That omits the _itsys_ one. I’m guessing that it’s matching everything that does not contain ‘i’ or ‘q’. I want it to omit something that does not contain '_iq_' at that spot.
I’m embarrassed that I even have to ask this, but if someone could point me in the right direction I would really appreciate it.
try with this:
bod[a-z\d]+__ds_(?!iq_)\w+I have tested from http://regexr.com?31rho