261,167 questions
-1
votes
2
answers
49
views
MySQL REGEXP for multiple (special) characters [duplicate]
Basically I have the following statement (that works) ...
SELECT * FROM `my_table` WHERE `my_field` REGEXP '[\[|,]24[\]|,]';
My string data is ...
[24,1,2] => FOUND
[1,24,2] => FOUND
[1,2,24] =&...
-1
votes
1
answer
37
views
GeneratedRegex missing backslash character in pattern
[GeneratedRegex("""[\\`\*_\{}\[\]\(\)>\#\+-\.!/:]""")]
private static partial Regex MyRegex();
This should, I think, match the characters
\`*_{}[]()>#+-.!/:
The ...
-1
votes
0
answers
68
views
Performance Issues with Parallel Processing in C# for Excel Data Processing [duplicate]
I'm working on a C# application that processes patient data from Excel files. I've implemented parallel processing to speed up the execution, but I'm still experiencing significant delays. Below is a ...
0
votes
1
answer
32
views
How to write a database query in Node.js/MongoDb using regex that returns a result when a field starts with a given string? [duplicate]
So far I have this code, that attempts to remove a "document" (a path string, like "./documents/images") from a database, as well as all subdocuments (path strings that start with ...
0
votes
0
answers
49
views
Replace every occurrence of a defined character in a part of a sentence
I have this "sentence"
* Description
05 W-EXEMPLE-A PIC 9(08).
With regex only, I need to extract some parts of the sentence and modify one
I need
Description part
W-EXEMPLE-...
0
votes
1
answer
53
views
Regex for latitude DDMMSSH where minute or second is equal to 60
I have the following regex:
var latregex = new RegExp("((900000)|(?:[0-8]\\d|90)(?:[0-5]\\d?|60)?(?:[0-5]\\d?|60)?(?:.[0-9]*\\d?)?)[NS]"); //matches DDMMH DDMMSSH DDMMSS.S*H
var longregex = ...
1
vote
2
answers
89
views
String pattern to extract street number and name
I have a data frame with a column of street addresses, some of which include suite, apartment, floor, etc., which are not useful in retrieving the latitude and longitude of the address.
I have ...
0
votes
3
answers
130
views
How can I remove the brackets and parentheses at the end of words? [closed]
My task is to parse the protein names by removing the brackets and parentheses in the row.
In short, I want to retain the words in front of any parentheses and brackets.
Note that I need to keep ...
0
votes
1
answer
71
views
Applicable for use in a bash script match substring as whole word only in parent string?
Applicable for use in a bash script match substring as whole word only in parent string?
For example parent string:
A='enp1s0 enp2s0 enp3s0 enp4s0 lo tailscale0'
And substring:
B='enp1s'
I have ...
1
vote
2
answers
43
views
How to hide files from find-file in emacs?
What I need to do is simple: I have A-f bound to find-file in emacs, but want to hide specific files that I do not care about. I have them hidden in dired already using this config:
(setq dired-omit-...
-1
votes
3
answers
135
views
A Regex expression that excludes a phrase [duplicate]
I'm hoping to match strings below that contain Jack and 1080p in any order, but exclude anything with Highlights.
Movie - Jack v John - 1080p
Movie - Jack v John - Highlights - 1080p
Movie - John v ...
-1
votes
0
answers
31
views
KQL query to match string starts with case-insensitive alpha, ends with digits [duplicate]
I'm trying to write a KQL query to match string like STRING, 1234
KQL
| where Identity matches regex @"^STRING.*\d+$"
This works but doesn't capture the string with different casing, such as ...
0
votes
1
answer
84
views
What regex flavor does Grafana use?
This source from the Grafana forum said that Grafana uses the golang regex flavor.
I'm trying to extract a key value pair from the format:
(Foobar -- 48)
After following the Grafana doc on Extracting ...
-2
votes
0
answers
48
views
Ansible reject with search/regex [closed]
I try to manipulate the ouptut of following powershell command:
Get-CimInstance -ClassName Win32_UserProfile | Select-Object -ExpandProperty LocalPath
Which could look like this:
[
"C:\\Users\\...
-1
votes
2
answers
57
views
RegEx validation for DIFF output [closed]
I'm using the Linux GNU diff output to show some file differences in a configuration window. For some specific reason I can only use GNU diff. Each difference in the output starts like the following:
...