Java String Get Substring By Regex Python For Dummies