^([a-zA-Z]+)\s+[a-zA-Z]+\s+([\w]+(?=\d$)\d)
Dont really know the basis for this selection but still you can get it like this.Just grab the captures.Dont forget to set the flags g
and m
.See demo.
More Related Contents:
- Removing contents within brackets in string [duplicate]
- How t extract last part of a text in python [duplicate]
- Regex not matching all the paranthesis substrings [duplicate]
- How to extract numbers from a string in Python?
- Process escape sequences in a string in Python
- Speed up millions of regex replacements in Python 3
- Is there a simple way to remove multiple spaces in a string?
- How to correctly sort a string with a number inside? [duplicate]
- Split string on whitespace in Python [duplicate]
- Fast punctuation removal with pandas
- How can I remove the ANSI escape sequences from a string in python
- How to un-escape a backslash-escaped string?
- Python regex – r prefix
- How to input a regex in string.replace?
- Split a string at uppercase letters
- How can I do multiple substitutions using regex?
- Escape special characters in a Python string
- How to match any string from a list of strings in regular expressions in python?
- How to write string literals in python without having to escape them?
- Extract a string between double quotes
- What does a leading `\x` mean in a Python string `\xaa`
- Python regex: splitting on pattern match that is an empty string
- How can I split this comma-delimited string in Python? [duplicate]
- Replace a string located between
- How can I put an actual backslash in a string literal (not use it for an escape sequence)?
- Remove Sub String by using Python
- FutureWarning: The default value of regex will change from True to False in a future version
- Adding backslashes without escaping [duplicate]
- How to use str.contains() with multiple expressions in pandas dataframes
- Adding characters after a certain word in Python using regex