Desired Functionality:
Using python regular expressions (perl-like), is it possible to create a query which only finds matches for which it has not already found?
Examples:
Input String:
1 1 1 2 2 2 3 3 3 4 4 4 40 40 40 45 45 45
Regex:
????
Expected Output:
['1', '2', '3', '4', '40', '45']
---------------------------------
Input String:
the the quick quick brown brown fox fox jumped jumped over over the the lazy lazy dog dog
Regex:
????
Expected Output:
['the', 'quick', 'brown', 'fox', 'jumped', 'over', 'lazy', 'dog']
---------------------------------
Input String:
dog lazy the over jumped fox brown quick the the quick brown fox jumped over the lazy dog
Regex:
????
Expected Output:
['dog', 'lazy', 'the', 'over', 'jumped', 'fox', 'brown', 'quick']
Bookmarks