Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
115 views

I have found the answer :-) It is: ^ghf(0[0-9]|[1-4][0-9]|5[0-2])\d{3}[A-Z]{2}_v\d{2}.pdf$ I receive filenames from a client that are structured according to the following scheme: ghf50001BE_v02.pdf ...
Thorsten D's user avatar
0 votes
3 answers
107 views

Incoming with another VBA question. I'm currently have data within a column that has many line breaks, but certain lines need to be only indented 2 spaces whereas certain lines need to be indented by ...
user31504798's user avatar
-11 votes
2 answers
147 views

I'm trying to write a regular expression that matches any 3 character string EXCEPT for bin and dev. No, grep -v is not allowed, nor is negative lookaround This must be pure regex. If I wanted to ...
Melab's user avatar
  • 2,966
-4 votes
3 answers
181 views

I’m trying to extract a specific portion of text and haven’t had success despite testing multiple patterns and looking at similar examples. After struggling for a while, I figured it was time to ask ...
Hakan54's user avatar
  • 4,097
2 votes
2 answers
133 views

I have a regular expression in an extension of java by florian ingerl to parse a latex command, \\\\DocumentMetadata(?<docMetadata>\\{(?:[^{}]|(?'docMetadata'))*\\}) but the important thing is ...
user2609605's user avatar
-2 votes
1 answer
126 views

As far as I understand, the difference between expected and actual one is NBSP (Non‐Breaking Space). I don’t know how to remove this. It doesn’t get highlighted and cannot be found using CTRL+H (...
holysh's user avatar
  • 32
-2 votes
2 answers
128 views

I’m working with .srt subtitle files in PHP and I need a regex that finds blocks containing exactly one dash (They're regular hyphens (-), not minus signs) and it starts at the beginning of a line. ...
Mwthreex's user avatar
  • 1,097
4 votes
1 answer
97 views

I'm working on a php project and I need to extract some informations from strings like : COROLLA CROSS (07/22>09/25<) I tried different patterns without success, such as: preg_match("/(?P&...
Abdel's user avatar
  • 744
1 vote
1 answer
86 views

I have this method: func isNameValid(_ value: String) -> Bool { let trimmed = value.trimmingCharacters(in: .whitespaces) guard value == trimmed else { return false } guard trimmed.count ...
Whirlwind's user avatar
  • 12.7k
0 votes
1 answer
110 views

I have a string which may or may not contain a code for an emote, all of which begin the same: "auroraa1" Such as: "auroraa1Smile", "auroraa1Bye", "auroraa1Love&...
Aurora Zetanova's user avatar
-8 votes
4 answers
140 views

Background I'm working on processing a comma-separated username list (for an ACL whitelist optimization in my project) and need to normalize whitespace around commas, as well as trim leading/trailing ...
samm's user avatar
  • 830
Advice
0 votes
8 replies
144 views

I want to match a string according to a pattern but only when it is not preceeded by an other pattern. const source = "abc.def.Ghi\n\ @:test(abc.def.Ghi2)"; const re = /(?!\()([a-z]\w+\.)+([A-Z]\w*)/g;...
Misiur's user avatar
  • 5,393
5 votes
2 answers
158 views

Here is a bash script: #!/bin/bash char=$'\x01' if [[ "$char" =~ ^[\x01-\x20\x7F-\xFF]$ ]] then echo "Unprintable" else echo "Printable" fi The script ought to say ...
Melab's user avatar
  • 2,966
-1 votes
2 answers
92 views

I have a Google spreadsheet with the following values: +------------+-----------------------------+ | G | F | +------------+-----------------------------+ | Hours (G)...
Michiel's user avatar
  • 8,121
-2 votes
1 answer
87 views

On Regex101, I have simple Regex with a named capture group in ECMAScript flavor: (?<name>.*) I'm trying to do the same thing in C++: #include <iostream> #include <regex> using ...
Thomas Weller's user avatar

15 30 50 per page
1
2 3 4 5
17411