You can match that with: (\w)\1*
More Related Contents:
- How to combine multiple regex into single one in python?
- Python regex string matching?
- How t extract last part of a text in python [duplicate]
- re.findall behaves weird
- Do regular expressions from the re module support word boundaries (\b)?
- Python extract pattern matches
- Does “\d” in regex mean a digit?
- Remove all special characters, punctuation and spaces from string
- Use Python’s string.replace vs re.sub
- Python regular expression re.match, why this code does not work? [duplicate]
- matching any character including newlines in a Python regex subexpression, not globally
- Python Regex to find a string in double quotes within a string
- How do I return a string from a regex match in python? [duplicate]
- Passing a function to re.sub in Python
- Splitting a string with repeated characters into a list
- ip address validation in python using regex [duplicate]
- “Nothing to repeat” from Python regex
- Mass string replace in python?
- pandas applying regex to replace values
- Using a RegEx to match IP addresses
- regexes: How to access multiple matches of a group? [duplicate]
- Do Python regular expressions have an equivalent to Ruby’s atomic grouping?
- Finding words after keyword in python [duplicate]
- Grep and Python
- Search for string allowing for one mismatch in any location of the string
- Regexp to remove specific number of occurrences of character only
- How to get the first word in the string
- Python: UserWarning: This pattern has match groups. To actually get the groups, use str.extract
- Generate a String that matches a RegEx in Python [duplicate]
- Split string at commas except when in bracket environment