I have strings of as and bs. I want to extract all overlapping subsequences, where a subsequence is a single a surrounding by any number of bs. This i ...
I have strings of as and bs. I want to extract all overlapping subsequences, where a subsequence is a single a surrounding by any number of bs. This i ...
I get a hypothesis from our teacher and he want from us to search and validate it. We have SLR(1) and LALR(1) parser. The hypothesis is: Suppose ...
I have a long text like this: and I want to get this output: The problem are the three dots in the first phrase. I can't find a regex which disc ...
I am now having trouble with the regex inside lookahead inside a regex formula. For specially, given the string: then the following regex seems not ...
I'm currently developing a parser to my grammar. My objective is to make it without lookaheads, and this is the one that I am really struggling with. ...
I want to match lines that start with a specific string (in this example "interface") if there is a another defined text (here "switchport mode access ...
In principle it is easy enough to write a wrapper for iterators, that allows arbitrary look-ahead, and some questions have been dedicated to that (e.g ...
Hi all, I'm having a bit of a problem that I am obviously unable to solve. It involves PCRE implementing negative lookahead AND behind conditions tha ...
I can't figure out how to utilize lookaheads/behinds in a regular expression to find matches across individual search bits (?) of the word/motif I'm s ...
I want to extract bigrams from sentences, using the regex described here and store the output to a new column which references the original. Ini ...
I wanted to create a regex to match a string that sharts with Localize(" and should end when a " pops up, but not when " is escaped (preceded by \). ...
I posted a question a few days ago about how to catch the words in a text preceding a certain regex match. enter link description here With the solut ...
I'm having trouble understanding regex behaviour when using lookahead. I have a given string in which I have two overlapping patterns (starting with ...
Edit: I should add, that the string in the test is supposed to contain every char there possible is (i.e. * + $ § € / etc.). So i thought of regexp sh ...
I trying to detect all occurrences of a certain string, that is not surrounded by certain strings (using regex lookarounds). Eg. all occurrences of "A ...
I use the following command to extract syscall names from strace output: strace ls 3>&1 1>&2 2>&3 3>&- | grep -P -o '^[a- ...
I'm writing a simple regex in postgres 9.5 using ~ I want to combine a positive lookahead and a negative lookahead. This is my Regex which is not wo ...
According to regular-expressions.info on lookarounds, the engine backsteps after a lookahead: Let's take one more look inside, to make sure you un ...
I'm looking for a Regex to find a substring starting at A, stopping at either B or C. However, when it's B, it shouldn't include the B, but when it's ...
I get some text at intervals from stream like, I wish to obtain I'm using (?<=\=\').*(?=';S) or (?<=\=\').*(?=') but they seem not suitabl ...