regex-negation Questions

1

Solved

Take the data set as lines of arrays with values, e.g.: [ "Dog", "cat", "Bird"] I would like to get an array with all those values that do not match a regex but am unwilling to use negative captu...
Barth asked 9/5, 2018 at 14:18

5

Solved

I need a regex to find all chars that are NOT a-z or 0-9 I don't know the syntax for the NOT operator in regex. I want the regex to be NOT [a-z, A-Z, 0-9]. Thanks in advance!
Fannyfanon asked 17/6, 2011 at 13:42

1

Solved

My mongo documents all contain a field called templateName. There are a few documents that contain the value: a_SystemDefaultTemplate, b_SystemDefaultTemplate, c_SystemDefaultTemplate etc. I...
Pointblank asked 22/12, 2017 at 10:58

2

Solved

I am trying to split the string into an array of strings those matching a regular expression and those that don't: string = "Lazy {{some_animal}} jumps over.." # do some magic with regex /({{\s?[\...
Tog asked 4/8, 2017 at 8:36

6

Solved

Below is the content: Subject: Security ID: S-1-5-21-3368353891-1012177287-890106238-22451 Account Name: ChamaraKer Account Domain: JIC Logon ID: 0x1fffb Object: Object Server: Security Obj...
Picked asked 5/10, 2013 at 2:7

3

Solved

When we include shorthand for character class and negated-character class in same character class, is it same as dot . which mean any character ? I did a test on regex101.com and every character ...
Rowney asked 29/5, 2017 at 15:40

1

Solved

This is my current regex check: const validPassword = (password) => password.match(/^(?=.*\d)(?=.\S)(?=.*[a-zA-Z]).{6,}$/); I have a check for at least 1 letter and 1 number and at least 6 ch...
Rhinelandpalatinate asked 3/5, 2017 at 15:16

2

Solved

I'm trying to find a Regex, that matches no more than n consecutive, say three, for example, occurrences of a character; in the case of three and character is "a": abbaa - matches; ammaaa - doesn't...
Marou asked 2/4, 2017 at 22:54

2

Solved

I need to match @anything_here@ from a string @anything_here@dhhhd@shdjhjs@. So I'd used following regex. ^@.*?@ or ^@[^@]*@ Both way it's work but I would like to know which one would be a b...
Vudimir asked 21/12, 2016 at 18:14

2

Solved

I want to match any string that does not contain the string "DontMatchThis". What's the regex?
Cappella asked 23/8, 2009 at 10:51

1

Solved

I've been looking through and out of stackoverflow for this, but I haven't had any luck. The string I want to work with is "xbananay", where 'x' and 'y' can be any random combination of letters or...
Rna asked 30/6, 2016 at 20:11

4

Solved

I'm using an API that sometimes truncates links inside the text that it returns and instead of "longtexthere https://fancy.link" I get "longtexthere https://fa…". I'm trying to get to match the li...
Kalli asked 1/4, 2016 at 13:52

3

Solved

How can I match an alpha character with a regular expression. I want a character that is in \w but is not in \d. I want it unicode compatible that's why I cannot use [a-zA-Z].
Villosity asked 10/1, 2010 at 23:43

2

Solved

I am working on Rails 2.3.11. If I have a url like http://www.abc.com/users/e.f.json , I expect the id to be 'e.f' and the expected format to be 'json'. Can someone please suggest a way to do it. T...
Fernery asked 2/8, 2011 at 6:19

4

I try to find a regex that matches the string only if the string does not end with at least three '0' or more. Intuitively, I tried: .*[^0]{3,}$ But this does not match when there one or two zer...
Josephjosepha asked 11/7, 2012 at 11:5

1

Solved

I'm attempting this challenge: https://regex.alf.nu/4 I want to match all strings that don't contain an ABBA pattern. Match: aesthophysiology amphimictical baruria calomorphic Don't Match an...

3

Solved

I need a regex (will be used in ZF2 routing, I believe it uses the preg_match of php) that matches anything except a specific string. For example: I need to match anything except "red", "green" or...
Thereinafter asked 5/6, 2013 at 2:23

2

Solved

I need a regular expression to match words that are not in a specific list I have. This is for a system I haven't made, but I need to use for filtering. Apparently it filters the fields according ...
Blasphemous asked 6/7, 2015 at 19:55

1

Solved

I want to pass values those are not equal zero (0). What is the best performing regex pattern for this ?
Charcoal asked 29/6, 2015 at 18:26

7

Solved

I have something like this aabbabcaabda for selecting minimal group wrapped by a I have this /a([^a]*)a/ which works just fine But i have problem with groups wrapped by aa, where I'd ne...
Debark asked 4/4, 2009 at 19:22

5

How can I retrieve all lines of a document containing "strA", but not "strB", in the Visual Studio search box?
Qualls asked 25/11, 2009 at 6:59

4

Solved

There's an input of strings that are composed of only digits, i.e., integer numbers. How can I write a regular expression that will accept all the numbers except numbers 1, 2 and 25? I want to use ...
Underproduction asked 28/8, 2014 at 16:16

2

How to write regex which find word (without whitespace) that doesn't contain some chars (like * or #) and sentence also (like level10 or level2 - it should be also regex - level[0-9]+). It will be ...
Garbo asked 5/8, 2014 at 17:55

5

Solved

Following on from a previous question in which I asked: How can I use a regular expression to match text that is between two strings, where those two strings are themselves enclosed two other st...
Revolver asked 2/1, 2010 at 22:53

3

Solved

JSLint reports Insecure '^' for the following line. Why is that? Or is it just going to complain any time I want to negate a character class? // remove all non alphanumeric, comma and dash charact...
Shrubby asked 5/11, 2010 at 19:10

© 2022 - 2024 — McMap. All rights reserved.