Skip to main content
-5 votes
2 answers
84 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
  • 818
-4 votes
0 answers
55 views

I have a file plenty of text strings like text {\LXXX} more text where XXX can be any character and its lenght is not necessary of 3 characters. I need to replace all {\LXXX} by {\LXXX}}, i.e., add } ...
jgpallero's user avatar
  • 197
Advice
0 votes
6 replies
79 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
-3 votes
1 answer
51 views

Using Regex in Google sheets, I need to extract "content1" in a separate cell (B1) from the 1st bracketed set without the brackets This entire string will appear in cell A1: [content1] [...
Alan Benlolo's user avatar
5 votes
2 answers
130 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,986
-2 votes
1 answer
128 views

I'm working with some marked text and I need to extract information in order to use later. I want to use regular expressions from Python using the module re, but I can't construct the right expression....
jgpallero's user avatar
  • 197
-1 votes
2 answers
78 views

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

I have a function that takes a string as an input and tries to extract the name and surname. It is a combination of NER and regex to try to extract the names present. Is there a better or more ...
saul ye's user avatar
-3 votes
0 answers
82 views

I have tried \txt.*$, (^.*?\.[txt]+)(.*)$, (^.*?\.[.txt]+)(.*)$ and nothing matches Here is an example of the file: download_list/list_left/14khashintipasswordai.txt download_list/list_left/...
Joseph Berman's user avatar
0 votes
1 answer
68 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
1 vote
2 answers
87 views

I'm parsing a number of text files of different formats. Some are csv, some are xml and some even txt. I have a case statement that checks if a certain string is contained in the first 100 bytes of a ...
Ricky883249's user avatar
-3 votes
0 answers
91 views

The classical problem of HTML tag removal, to obtain a plain text content, may be usually addressed with patterns like : <[^>]+?>. But what if you got this kind of content : <exampletag ...
accactus's user avatar
-3 votes
2 answers
187 views

I have filenames with this pattern [a-zA-Z0-9]{10} and .txt extension. They might also contain a pattern like this [super] and it could be either before or after [a-zA-Z0-9]{10} with '_' separating ...
user1850133's user avatar
  • 3,057
-4 votes
2 answers
111 views

I have this RegEx in JavaScript: /^\d{4}-\d{2}-\d{2} ([a-z,]*)((.|\n|\r)*?)/mig 2025-11-13 bb Test. 2025-11-12 bb Mail von Test testd trest Tes 2025-11-12 bb Mail v Regex101 but I need the ...
Davidy's user avatar
  • 1
Best practices
0 votes
4 replies
99 views

I have a corpus of text which includes some accented words, such as épée, and I would like people to be able to easily search through it using ASCII input. Ideally, they would simply type protege or ...
hackerb9's user avatar
  • 2,111

15 30 50 per page
1
2 3 4 5
17411