Created
March 27, 2018 01:36
-
-
Save zironycho/bdd2fa648d6d5f90843feb0bfc6c000b to your computer and use it in GitHub Desktop.
find number with prefix, suffix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = '/example/like_123/1_t34893_.that' | |
int(re.findall(r'1_t([\d]+)_', s)[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment