I am getting a warning (in the QtCreator IDE) regarding the code snippet below. The warning is that I should not create temporary QRegularExpression o ...
I am getting a warning (in the QtCreator IDE) regarding the code snippet below. The warning is that I should not create temporary QRegularExpression o ...
QRegularExpression functionPattern("\\b[A-Za-z_][A-Za-z0-9_]*(?=\\()"); what dose this regex expression in qt mean? I can't understand the meaning be ...
Problem : This regex is working fine for String s1 but not for s2. for string s2, matcher2.find() return false. ...
I have a few strings, like: So I need to cut that piece of string, which start from кв. I use regular expression and this my code: But I want to ...
I have a question about operator precedence hierarchy, why "Because sequences have a higher precedence than disjunction, /the|any/ matches the or any ...
I don't have knowledge of regex but need to extract the string Account Name: W2XA2$ and only W2XA2$. Now Account Name: CAN_BE_A_WORD_ENDING_WITH$. ...
1,2,3,4 - Should pass 1, - Should fail 1.2,1,4,5 - Should pass 1.,2 - Should fail 1.2,1.2 - Should pass .5,.5 - Should fail ...
The string should contain only one hyphen, eg.if the string is ABC-123, then I need to fetch ABC ...
I have some data for which i want to select the LAST VALUE BEFORE THE DELIMITER Example- A -> B -> C -> D In this case, i want to select "C ...
Im trying to write regular expression to restrict empty string and comma inside a string example: string = ""(not allowed), s = "ab c!@#)(*&^%$#~ ...
I guess that this has had to be asked before, but cannot find anything about it. I also think that maybe the answer is just right there but I can't se ...
I want to reserve all English characters and replace others. When using 're' module, it looks like that: Then I get 'name = 'srwwe'. Now I want to ...
Need to split something like 1-(a+b-b-d)*100 into 1, a+b-b-d, 100 I tried (\+|-|\*|\/) which will split the string into 1 (a b b d) 100 ...
I have a document, and I need to find all the words(no spaces) borded with '. (e.g. 'apple', 'hello') What would be the regular expression? I've trie ...
I am fairly new to using regexes. I got a string which can contain quoted and not quoted substrings. Here are examples of how they could look: My ...
I was trying replace null , .null or null. string from below code snippet Tried this function and got output But expecting How can we achi ...
I have string field "event=[someevent1] ID=[000001] text=[Sample Text 123]" I need just the part inside text that is Sample Text 123 How to extract ...
If 2 L spanned from the bit alphabet. L1 = 000 L2 = 0 *1 * If we concatenate them L1L2 = 0000 *1 * I believe these 2 languages are regular because of ...
The CORS origin spec requires the origin to be of the following possibilities: I would like to have a regex that can match origins with the above c ...
I use https://regex101.com and https://www.regextester.com to check my regular expressions. I presume Qt uses PCRE or PCRE2, but sometimes it won't wo ...