>>> print(re.sub("$", "what", "A\nB\nC\n")) A B Cwhat what python?? buddy???
Wow. Seems to be the intended behavior tho.. I guess to work around cases where $ wouldn't work as expected bc of \n at the end of a string.pic.twitter.com/rQxwzEq2N2
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
Wow. Seems to be the intended behavior tho.. I guess to work around cases where $ wouldn't work as expected bc of \n at the end of a string.pic.twitter.com/rQxwzEq2N2