regex-negation Questions
2
I am trying to create a regular expression using POSIX (Extended) Regular Expressions that I can use in my C program code.
Specifically, I have come up with the following, however, I want to exclud...
Scandium asked 13/3, 2013 at 5:5
3
Solved
I'm currently using a scanning software "Drivve Image" to extract certain information from each paper. This software enables certain Regex code to be run if needed. It seems to be run with the Ultr...
Dunkle asked 30/5, 2016 at 12:55
6
Solved
I have a regex, for example (ma|(t){1}). It matches ma and t and doesn't match bla.
I want to negate the regex, thus it must match bla and not ma and t, by adding something to this regex. I know I...
Incommutable asked 14/4, 2010 at 13:25
19
I want to design an expression for not allowing whitespace at the beginning and at the end of a string, but allowing in the middle of the string.
The regex I've tried is this:
\^[^\s][a-z\sA-Z\s...
Chequer asked 24/1, 2016 at 11:1
1
Solved
I would like to filter tags with a specific regex. In my case, I'd like to negate a character in the search. I cannot find any README, resources, or github issue that discusses what regex syntax Te...
Arhat asked 17/12, 2020 at 16:51
7
Solved
I need a single-pass regex for unix grep that contains, say alpha, but does not contain beta.
grep 'alpha' <> | grep -v 'beta'
Politics asked 19/5, 2011 at 18:33
3
Solved
I have a regular expression which I want to negate, e.g.
/(.{0,4})
which String.matches returns the following
"/1234" true
"/12" true
"/" true
"" false
"1234" false
"/12345" false
Is there a...
Hiedihiemal asked 22/12, 2011 at 23:12
4
Solved
I'm trying to parse a text file into sentences ending in periods, but names like Mr. Hopkins are throwing false alarms on matching for periods.
What regex identifies "." but not "Mr."
For bonus, ...
Harping asked 31/5, 2010 at 21:31
8
Solved
I am stumped trying to create an Emacs regular-expression that excludes groups. [^] excludes individual characters in a set, but I want to exclude specific sequences of characters: something like [...
Saddlebag asked 7/2, 2010 at 19:16
5
Solved
I'm setting up some goals in Google Analytics and could use a little regex help.
Lets say I have 4 URLs
http://www.anydotcom.com/test/search.cfm?metric=blah&selector=size&value=1
http://w...
Tubuliflorous asked 1/6, 2010 at 20:21
4
Solved
I am trying to write a Regex to stop a use entering invalid characters into a postcode field.
from this link I manged to exclude all "Non-word" characters like so.
Regex regex = new Regex(@"[\W_]...
Danielldaniella asked 13/6, 2017 at 12:3
2
Solved
There are many questions already answered for replacing everything positive numbers. But, I couldn't find any answer which preserves both positive and negative numbers. I want to replace everything...
Whited asked 6/9, 2015 at 9:14
3
Solved
I am trying to implement regex validation for passport number.
My requirement is
Length should be minimum 3 characters to a maximum of 20 characters.
Should not be only 0's
I tried with the ...
Jam asked 17/11, 2016 at 6:2
6
Solved
quick question: my pattern is an svg string and it looks like l 5 0 l 0 10 l -5 0 l 0 -10 To do some unittest comparison against a reference I need to ditch all but the first l I know i can ditch t...
Holdall asked 31/10, 2011 at 21:29
3
Solved
I'd like to use regex to see if a string does not begin with a certain pattern. While I can use: [^ to blacklist certain characters, I can't figure out how to blacklist a pattern.
> grepl("^[^a...
Doable asked 8/12, 2011 at 21:49
7
Solved
I have used Inet6Address.getByName("2001:db8:0:0:0:0:2:1").toString() method to compress IPv6 address, and the output is 2001:db8:0:0:0:0:2:1 ,but i need 2001:db8::2:1 . , Basically the c...
Insouciant asked 12/8, 2011 at 17:26
5
What is a regex to match a string that ends with a number for example
"c1234" - match
"c12" - match
"c" - no match
Tried this but it doesn't work
(?|c(?|[0-9]*$))
Thanks again,
The begginin...
Festination asked 20/5, 2015 at 8:39
5
Solved
I am stil struggling with understanding how Regex works exactly.
I am getting usernames and they are in this format:
firstname.lastname
Both names may contain special international characters ...
Riband asked 25/7, 2013 at 14:45
4
Solved
I'm trying to remove all characters from a string except for #, @, :), :(.
Example:
this is, a placeholder text. I wanna remove symbols like ! and ? but keep @ & # & :)
should result in ...
Brunner asked 11/5, 2019 at 15:18
3
Solved
In Python, I try to find the last position in an arbitrary string that does match a given pattern, which is specified as negative character set regex pattern. For example, with the string uiae1iuae...
Lizbeth asked 28/4, 2019 at 12:27
2
Solved
The target structure looks like the following:
検索結果:100,000件
If I use the following regex pattern:
((?<!検索結果:)(?<!次の)(((〇|一|二|三|四|五|六|七|八|九|十|百|千|万|億|兆|京+|[0-90-9]))(,|,|、)?).+((〇|一|二|三|...
Petronia asked 15/1, 2019 at 7:16
6
Solved
Assume the following strings:
aaa bbb ccc
bbb aaa ccc
I want to match aaa as long as it is not at the start of the string. I'm trying to negate it by doing something like this:
[^^]aaa
But I ...
Frontal asked 27/3, 2013 at 21:9
5
Solved
With javascript I want to limit a contenteditable cell, to allow only numbers and one dot and after the dot max 2 number
valid examples:
2
0.2
0.35
.5
.22
4.55
6.4
6546545.55
in my exaple I
...
Feder asked 26/5, 2018 at 18:39
2
Solved
I am learning regex but have not been able to find the right regex in python for selecting characters that start with a particular alphabet.
Example below
text='this is a test'
match=re.findall('...
Toxic asked 16/5, 2018 at 15:13
4
Solved
In some regex flavors, [negative] zero-width assertions (look-ahead/look-behind) are not supported.
This makes it extremely difficult (impossible?) to state an exclusion. For example "every line ...
Closing asked 21/1, 2009 at 16:50
1 Next >
© 2022 - 2024 — McMap. All rights reserved.