import re
s="asdf=5;iwantthis123jasd"
result = re.search('asdf=5;(.*)123jasd', s)
print(result.group(1))
More Related Contents:
- find all possible combinations of letters in a string in python [duplicate]
- Does Python have a string ‘contains’ substring method?
- How to check if a string contains a substring in Bash
- How do I get a substring of a string in Python?
- Why does substring slicing with index out of range work?
- How to extract the substring between two markers?
- How to get a string after a specific substring?
- Find the nth occurrence of substring in a string
- Extract substring in Bash
- How To Get All The Contiguous Substrings Of A String In Python?
- Repeat string to certain length
- Replace nth occurrence of substring in string
- Find substring in string but only if whole words?
- Python: most idiomatic way to convert None to empty string?
- Python: How to check a string for substrings from a list? [duplicate]
- Python: Find a substring in a string and returning the index of the substring
- How do I find the last occurrence of a substring in a Swift string?
- How do I check if a given Python string is a substring of another one? [duplicate]
- Convert bytes to a string
- add a string prefix to each value in a string column using Pandas
- How can I split and parse a string in Python?
- How can strings be concatenated?
- How to convert an int value to string in Go?
- How does my input not equal the answer?
- shuffle string in python
- Convert a columns of string to list in pandas
- What’s the difference between str.isdigit(), isnumeric() and isdecimal() in Python?
- How does python startswith work?
- How can I match an exact word in a string?
- How to use str.contains() with multiple expressions in pandas dataframes