Skip to content
Advertisement

Tag: match

Regex match specific string without other string

So I’ve made this regex: to match only the first of the following two sentences: discount of €50,20 on these items This item on sale now for €30,20 As you might’ve noticed already, I’d like the amount in the 2nd sentence not to be matched because it’s not the discount amount. But I’m quite unsure how to find this in

Advertisement