Top "Regex-negation" questions

Regex-negation is an operation performed on a character class that complements its pattern.

Regex pattern to not equal 0

I want to pass values those are not equal zero (0). What is the best performing regex pattern for this ?

regex regex-negation
Can sed regex simulate lookbehind and lookahead?

I'm trying to write a sed script that will capture all "naked" URL's in a text file and replace them …

regex sed awk regex-negation regex-lookarounds
How to match every file but one in grunt concat?

I'm using grunt to concatenate and minimize my js files, I use the following config for the concat part: concat: { …

regex node.js regex-negation gruntjs
regular expression - match word only once in line

Case: ehello goodbye hellot hello goodbye ehello goodbye hello hello goodbye I want to match line 1 (only has 'hello' once!) …

regex regex-negation
POSIX Regular Expressions: Excluding a word in an expression?

I am trying to create a regular expression using POSIX (Extended) Regular Expressions that I can use in my C …

regex regex-negation negative-lookahead posix-ere
How to mask credit card number mask in a text?

I have a form on my website and my customers send message to me with this form. Sometimes they write …

regex regex-negation
Regex, That Matches No more Than n Occurrences

I'm trying to find a Regex, that matches no more than n consecutive, say three, for example, occurrences of a …

regex regex-negation
regexp to match string1 unless preceded by string2

Using Ruby, how can I use a single regex to match all occurrences of 'y' in "xy y ay xy +…

ruby regex string regex-negation
How to get the inverse of a regular expression?

Let's say I have a regular expression that works correctly to find all of the URLs in a text file: (…

regex regex-negation inverse
Regex: How to retrieve all lines containing strA but not strB in Visual Studio

How can I retrieve all lines of a document containing "strA", but not "strB", in the Visual Studio search box?

visual-studio regex regex-negation