Skip to main content
Filter by
Sorted by
Tagged with
2 votes
3 answers
150 views

Is it possible to order or prioritize something in a capturing group? Like this: SELECT * IN table WHERE name = "(f|o|d)(b|a|z).*" ORDER BY ?; so the result is ordered by the order of the ...
oskugbg's user avatar
  • 33
1 vote
0 answers
29 views

I need to transform strings like 333bis into 33300, so I set up a regex pattern like (\d{3})(bis), but I can't use \100 as substitute pattern, because it will be interpreted as "group 100". ...
eazyezy's user avatar
  • 185
0 votes
1 answer
88 views

I have 2 files: a channellist file and a global source file containing data of all channels. In the channellist there are f.i. these 2 lines; of course there are a lot more and all lines are starting ...
ni_hao's user avatar
  • 438
-1 votes
3 answers
85 views

I have regex which uses a look ahead assertion to match strings of the format {{ x }}. The regex is /(?<=\{\{\s)[^}\s]+(?=\s*\}\})/gm How can I achieve this without using a look ahead assertion?
williamsandonz's user avatar
1 vote
2 answers
86 views

I am trying to extract the email`s username if the email is from a specific domain. otherwise, get the full email. I need the result to be set in Group 1. [email protected] => test test@example2....
Zeedia's user avatar
  • 1,553
0 votes
1 answer
32 views

The following match patter does look for the character / not having a blank space before it, but having a blank or a dot or a line ending after it. >>> import re >>> re.search(r"...
buhtz's user avatar
  • 12.5k
6 votes
2 answers
325 views

Good morning all, I want to make a regex that match 3 same consecutive numbers. It should match only 3 numbers in a row (separated by a space), the numbers should be identical. If there are less or ...
Rol Co's user avatar
  • 63
1 vote
1 answer
52 views

I have this string "https://url/projects/x/flow/" and i want: if projects is existing in the string, capture x in a group named project_name if projects not existing in the string, then ...
Noura's user avatar
  • 59
2 votes
1 answer
53 views

I thought I knew about regex... Here's the situation: N-U0 U0-M1 M1-T9 T9-R10 R10-E19 E19-L100 L100-B I have a String that contains groups (let's call them transitions) separated by whitespace (may or ...
GuiRitter's user avatar
  • 797
0 votes
2 answers
84 views

I have the text below stored in the variable description: This is a code update Official Name: None Pub: https://content.upcodes.co/viewer/washington/wa-mechanical-code-2021 Agency: Reference: ...
alyssaeliyah's user avatar
  • 2,264
1 vote
2 answers
110 views

I have a test string "apple search from here apple, banana, apple." and the following RegEx (?i)(?<=search from here\s)(\bapple|banana|orange\b)(\s+(\bapple|banana|orange\b))* I'm getting ...
bigb055's user avatar
  • 308
1 vote
3 answers
178 views

I am writing a regex for my git commit-msg hook and can't deal with the last part. This is my regex /^GRP\-[0-9]+\s(FIX|CHANGE|HOTFIX|FEATURE){1}\s(CORE|SHARED|ADM|CSR|BUS|OTHER){1}\s-\s.+/ My commit ...
Norayr Ghukasyan's user avatar
1 vote
1 answer
66 views

As a new programmer, I am working on a problem that tells me to turn an array of 10 ints into a formatted string phone number that looks like this: (999) 999-9999. I am getting an error/issue with ...
Liam Barry's user avatar
2 votes
2 answers
75 views

I'm trying to category_id for purely numeric values, this works. I need to also capture category_name. For category_name, I need to capture until space or include space if it started with a double ...
James Risner's user avatar
  • 6,136
5 votes
3 answers
430 views

Is there a limit to the number of capture groups in a regular expression? I used to think it was 9 ($1 ... $9), but haven't found anything in the perlre docs to confirm this. And in fact, the ...
livefree75's user avatar

15 30 50 per page
1
2 3 4 5
15