Skip to main content
Filter by
Sorted by
Tagged with
-6 votes
1 answer
167 views

Product codes may contain 5 different prefixes CK0, CK, C, 0, K0 and two character suffixes from AA to AZ: AA,AB,...,AZ Sample codes: CK04721310AE CK04721310AD CK04721310AC CK04721310AB 4721310AE ...
Andrus's user avatar
  • 28.2k
-4 votes
1 answer
97 views

For example, I have this texte (without newline - it's important) : <div> ffjdklfjdklfjs 2015 ddddd </div> sfsfsfsfsf <div> hkh/ <> -%=:;.éggggggggggg 2018 dsqkdlmqs </...
DTT59's user avatar
  • 1
1 vote
0 answers
34 views

I have a regex question that's been driving me a bit crazy. I'm parsing a file and need to match and extract specific parts of each line read. The lines come in two forms (ignore the syntax, I'm just ...
Horgh's user avatar
  • 19
2 votes
0 answers
66 views

I have two possible cases in some XML. Case 1, incorrect: <tag att1="text1"/> Case 2, correct: <tag att1="text1" att2="text2"/> So I am trying to find all ...
Bobkitty's user avatar
0 votes
0 answers
54 views

I hate to post such specific questions as why a regex is not working, but I have been searching for someone with the same problem to no avail. It seems I am miss understanding something about ...
Tiago Stein's user avatar
1 vote
1 answer
74 views

I need to be able to select variable elements from the following ingredient list example. I wish to collect the 'full word, space & •' in all instances. INGREDIENTS: ALCOHOL DENAT. • FRAGRANCE (...
Steven Foster's user avatar
1 vote
4 answers
147 views

I am trying to write a regex with go to match prices that composed by at least five digits with comma on the price. For example: "10,400,000","10,900,000","500,000", I ...
carlcaroline's user avatar
1 vote
3 answers
83 views

I need to retrieve all keys using pure regex. I need to start with word field and after that need to capture all multiple keys.. field[somevalue][anothervalue] I'm using this regex: /^field(?=\[(\w+)](...
Manuel Pardo's user avatar
0 votes
0 answers
117 views

I have written the following regex: ^project\(.+?version\s*:\s*'(.+?)'.*\)$ The first capture group will grab 0.9.20 from the following block of text: project( 'waybar', 'cpp', 'c', version: '...
Jacob Birkett's user avatar
1 vote
1 answer
2k views

I am trying to write condition in look behind to prevent space removing in quotes and after specific keywords. For example, I have a string str = "client_id like 'TACIENT 1%' or client_id < '...
sigismund's user avatar
1 vote
0 answers
44 views

Looking to pick up all those 0s which doesn't add any value to a number: 1.000 should give .000 0.000 should give .000 0.0080 should give me 0 however 10 should remain 10, only after the decimals I ...
Bhavya Gandhi's user avatar
1 vote
0 answers
69 views

im new to regex, but i have a question i could not find a answer to. i have a file that looks like this more text static abc_p ABC_P[] = { /* Netz I */ { N1 N1 N1 0, { ...
Rokrait's user avatar
  • 31
5 votes
1 answer
165 views

I tried to use regexes for finding max-length sequences formed from repeated doubled letters, like AABB in the string xAAABBBBy. As described in the official documentation: The '*', '+', and '?' ...
Anton Ganichev's user avatar
-1 votes
3 answers
507 views

The phone number I need to validate needs to be at least 8 characters long and has two possible formats: Must be at least 8 digits like "12345678" OR Must have 2 or 3 digits before "-&...
MoonGoose's user avatar
0 votes
1 answer
143 views

I have a pattern (\{!(.*?)\})+ that can be used to validate an expression of format {!someExpression} one or more number of times. I am performing Pattern.compile("(\\{!(.*?)\\})+").matcher(&...
Rahul Agarwal's user avatar
0 votes
3 answers
119 views

I am trying to extract the second date displayed in this string, however my code keeps extracting just the first date in gsheet: String: BOT +1 1/1 CUSTOM IWM 100 12 SEP 22/7 SEP 22 184/184 PUT/CALL @...
Emye DaOne's user avatar
0 votes
1 answer
43 views

I'm completely new to regex and recently started learning it. Here's a part of my test string from which I'd like to find matches. 24 bit: Black #000000 12 bit: Black #000 My question is the ...
jleng's user avatar
  • 65
0 votes
1 answer
62 views

import re input_text = 'el dia corrimos juntas hasta el 11° nivel de aquella montaña hasta el 2022_-_12_-_13' #input_text = 'desde el corrimos juntas hasta el 11° nivel de aquella montaña y luego ...
Matt095's user avatar
  • 875
2 votes
1 answer
46 views

i am facing issues while trying to cut out a substring from a string using python regex. the problem statement is that i want to take any substring matching the following format from a bigger string ...
Kaushik Ghosh's user avatar
2 votes
1 answer
45 views

Regex: Plus operator does not match. How many times my regex backtrack? [ ^ ]* function stripComments(code) { return code.replace(/\/\/.*|\/\*[^]*\*\//g, ""); } console.log(stripComments(&...
Jesse J Sosmena's user avatar
1 vote
1 answer
71 views

I am struggling to create a special regex, that tokenize in smartly the text. Some of the rules are: Don't split on "," or "." if they appear between two digits. ex: "12,3&...
yassine's user avatar
  • 75
1 vote
0 answers
97 views

I am trying to split strings with that contain multiple forms like CV(N)(C), where C = ptk V = aeiou N = mn and elements in parentheses are optional, similar to regex ?. My initial thought that, in ...
bigyihsuan's user avatar
-1 votes
1 answer
47 views

I've stumbled with certain types of rows. I parse this information 195/75 R 16 C X Wonder Van 110/108R 10PR Tourador The groups, which I need I've got the following regex ([0-9]+)?\/([0-9]+)\s*\w\s*([...
S.Solomon's user avatar
2 votes
1 answer
1k views

I'm trying to extract all the unicode characters of emojis using presto regexp_extract_all function, but its is storing everything as an individual element in the array. what is wrong with my regexp ...
user7343922's user avatar
0 votes
1 answer
76 views

I am just writing some piece of java code where I need to validate groupId (maven) passed by user. For example - com.fb.test1. I have written regex which says string should not start and end with '.' ...
priyam singh's user avatar

1
2 3 4 5
20