>>> re.split('x|(y)', 'AxB') ['A', None, 'B'] >>> re.split('(y)|x', 'AxB') ['A', None, 'B']
Some regex engines have "leftmost longest" matching semantics. In those, you would see identical results for both snippets.
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Some regex engines have "leftmost longest" matching semantics. In those, you would see identical results for both snippets.