Since you say "aba"-style repetition doesn't count, back-references should make this simple:

(.)\1+

Would find sequences of characters. Try it out:

java.util.regex.Pattern.compile("(.)\\1+").matcher("b").find(); // false
java.util.regex.Pattern.compile("(.)\\1+").matcher("bbb").find(); // true
Answer from vanza on Stack Overflow
🌐
Super User
superuser.com › questions › 1812446 › regex-to-find-more-than-one-occurrence-in-grepwin
search - Regex to find more than one occurrence in GrepWin - Super User
October 13, 2023 - I want to find more than one occurrence of the tag h1 in multiples files. The following regex brings files that has it more than 2 times, which is working great: /(h1.*){2}/ However, what if I wan...
Discussions

Can't seem to match more than one occurrence of a substring
This is because you are using a capture group. findall returns the results of the capture instead of the full match. Try using finditer which returns match objects instead. Or use a non-capture group. (?:pain)+ ”If one or more groups are present in the pattern, return a list of groups” Re findall documentation More on reddit.com
🌐 r/regex
16
3
July 4, 2021
Extract a single value from multiple occurrences matched by regex
In document understanding “regex based extractor”, need to extract a name, i’ve used regex “[A-Z][a-zA-Z.]+\s[A-Z][a-zA-Z.]+”, but it matches multiple occurrences, i need to extract the first two occurrences. Is there a way to limit the regex to a specific portion of text? More on forum.uipath.com
🌐 forum.uipath.com
9
0
January 26, 2023
Regular expressions: How can I match multiple groups in any order multiple times?
Probably simpler than you think. (ab|cde|abb|efbc)+ More on reddit.com
🌐 r/learnpython
14
2
June 2, 2022
regex - How to match multiple occurrences of a substring - Stack Overflow
If I have an HTML string such as: £2056 And I want the text: 20 More on stackoverflow.com
🌐 stackoverflow.com
🌐
DEVONtechnologies Community
discourse.devontechnologies.com › devonthink › automation
Regex (global mode): How to look for (and pass on) multiple occurrences of a string in a document? - Automation - DEVONtechnologies Community
July 10, 2022 - Hello, is it possible using a regular ... document’s name (by adding the multiple occurrences)? For example, the regular expression /hello/g looks for multiple occurrences ......
🌐
QBasic on Your Computer
chortle.ccsu.edu › finiteautomata › Section07 › sect07_19.html
Basic Regular Expressions: One or More Instances
Rule 7. ONE or More Instances · The character + in a regular expression means "match the preceding character one or more times". For example A+ matches one or more of character A
🌐
Delft Stack
delftstack.com › home › howto › javascript › javascript regex multiple matches
How to Match Multiple Occurrences With Regex in JavaScript | Delft Stack
February 2, 2024 - A TypeError will be issued if the RegExp object does not have the /g flag. ... It will return an iterator (which is not a restartable iterable) of matches. Each match is an array (with extra properties index and input). The match array has the matched text as the first item and then one thing for each parenthetical capture group of the matched text.
🌐
Fyicenter
sqa.fyicenter.com › 1000223_Regular_Expression_Pattern_Match_Multiple_Occurrences.html
Regular Expression Pattern Match Multiple Occurrences
Regular Expression Pattern Match ... expression pattern match with multiple occurrences, you need to write a pattern string in regular expression language....
Find elsewhere
🌐
UiPath Community
forum.uipath.com › help › studio
Extract a single value from multiple occurrences matched by regex - Studio - UiPath Community Forum
January 26, 2023 - In document understanding “regex based extractor”, need to extract a name, i’ve used regex “[A-Z][a-zA-Z.]+\s[A-Z][a-zA-Z.]+”, but it matches multiple occurrences, i need to extract the first two occurrences. Is the…
🌐
CodingTechRoom
codingtechroom.com › question › -regex-match-multiple-occurrences
How to Create a Regular Expression That Matches Multiple Occurrences of a Character - CodingTechRoom
Forgetting to account for case sensitivity or character classes may yield incomplete matches. Not using the correct quantifiers for your specific needs. Use curly braces to specify the exact number of occurrences needed: `x{n}` for exactly `n` times, `x{n,}` for at least `n` times, or `x{n,m}` ...
🌐
Reddit
reddit.com › r/learnpython › regular expressions: how can i match multiple groups in any order multiple times?
r/learnpython on Reddit: Regular expressions: How can I match multiple groups in any order multiple times?
June 2, 2022 -

Let's say I have the following list of strings that I want to match:

['ab', 'cde', 'abb', 'efbc']

Is there a way to write a single RE that will match any string that contains any amount of these strings in any order?

So for example, all of these would be valid matches:

abcdeabb
ababbefbc
efbccdeab
cdecdeabefbcab
ababababab

If you don't feel like working it out, I'd appreciate any general guidance as well, such as what I need to look into. Perhaps look-ahead and/or look-behind? I'm not familiar with those.

Thanks!

🌐
PerlMonks
perlmonks.org
Regex to extract multiple occurrences
Crackers2 has asked for the wisdom of the Perl Monks concerning the following question: · I have a string like this:
🌐
Stack Overflow
stackoverflow.com › questions › 42003710 › regex-multiple-occurrences-within-match
regex - multiple occurrences within match - Stack Overflow
You mean you want to find 3 occurrences of ** in between {1234} and {4321}? Are you using .NET or PCRE or any other regex engine? Are you going to replace those asterisks? ... Yes, but not only three occurrences, in some full matches might be 4 or more.
🌐
NTU Singapore
www3.ntu.edu.sg › home › ehchua › programming › howto › Regexe.html
Regular Expression (Regex) Tutorial
This regex matches any non-empty numeric strings (comprising of digits 0 to 9), e.g., "0" and "12345". It does not match with "" (empty string), "abc", "a123", "abc123xyz", etc. However, it also matches "000", "0123" and "0001" with leading zeros. [1-9] matches any character between 1 to 9; [0-9]* matches zero or more digits. The * is an occurrence indicator representing zero or more occurrences.
🌐
PowerShell Forums
forums.powershell.org › powershell help
Regex match every occurrence - PowerShell Help - PowerShell Forums
August 7, 2021 - I want to match every occurrence of a pattern starting with date and ending with any numbers after the period. I saw a similar question on the Reddit PowerShell page, but no solution. $string = '2020-01-01,John Doe,AddressOne,123456,23.23,2020-01-05,Jane Smith,AddressTwo,445538754,12.157' [regex]::Matches($string, '\d{4}-.*\.\d{1,}') I know this is correct because it gives 2 date values [regex]::Matches($string, '\d{4}-\d{2}-\d{2}') Expected non-greedy results: 2020-01-01,John Doe,Address...
🌐
UC Berkeley Statistics
stat.berkeley.edu › ~spector › extension › python › notes › node84.html
Multiple Matches
We've already seen that the findall method can return a list containing multiple occurrences of a match within a string. There are a few subtleties in the use of findall which should be mentioned, as well as alternatives which may be useful in certain situations.
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › standard › base-types › quantifiers-in-regular-expressions
Quantifiers in Regular Expressions - .NET | Microsoft Learn
August 11, 2022 - For example, the following code shows the result of a call to the Regex.Match method with the regular expression pattern (a?)*, which matches zero or one a character zero or more times.