2,768 questions
0 votes
0 answers
15 views
NEST Network Emulation: httperf parser fails with AttributeError: 'NoneType' object has no attribute 'group
markdown I'm trying to run HTTP emulation experiments using NEST (Network Emulation and Simulation Testbed) but encountering parser errors with httperf output due to regex pattern mismatches. Problem ...
-2 votes
4 answers
187 views
Problem when using `/^([^\n]*?)(\n)(.*)$/m` to match multi-line string
I have a problem I don't understand: Given a string consisting of multiple lines like this: DB<5> x $token 0 'ACCOUNT_CHANGED = "20250728081545Z" ACCOUNT_CHANGED_T = "...
5 votes
2 answers
237 views
Regular expression groups are not capturing properly
I have following expression: String formula7 = "(^TBC10.Actual.Value_<<Year>> == \"Final\" ? ^FN10101.Actual.Value_<<Year>> : ^INT805.Consensus.Value_<<...
3 votes
3 answers
128 views
regex to match all unescaped '$' in a regex string
I want to build a regex that will match all unescaped $ in strings that represents a regex. In this case, a character is unescaped if it contains an equal number of backslashes behind it (each pair of ...
0 votes
2 answers
31 views
REGEX fails when adding an optional mark to a group
In the following string blah blahTESTblab la14blah-15S rebla I'm trying to capture TEST and 15S if present. I wrote the following regex : (TEST).*?(\d{1,2}S)? Everything is going well until the last ?....
0 votes
0 answers
25 views
Regex capture key-pairs, skip missing [duplicate]
Many lines of key-value pairs, each line lives inside brackets. The key-value pairs can be in any order and/or missing. In this example all I want are 3 fields: name, age, hair color. [name:"...
-3 votes
2 answers
103 views
How to get second material name from product description
Product description is string like Main fabric: 50% Organic Cotton, 49% Cotton, 1% Elastane Material names are between % and , or up to end of string for last material name Elastane. Tried to get ...
-4 votes
1 answer
97 views
regex - error with result - too many occurence [duplicate]
For example, I have this texte (without newline - it's important) : <div> ffjdklfjdklfjs 2015 ddddd </div> sfsfsfsfsf <div> hkh/ <> -%=:;.éggggggggggg 2018 dsqkdlmqs </...