I have a string list:
- ReferencePrice
- ReferenceCurrentPrice
- CostPrice
- AverageCostPrice ...
I want to filter out all strings that:
- Containing 'Price',
- But not containing 'CostPrice'
My regex is '(?!Cost)Price', but it can match the 3rd string 'CostPrice', why? and what is the correct regex?
Aucun commentaire:
Enregistrer un commentaire