Need string to display \n in printed output without trailing + leading '. Currently using repr on the input (opening + reading .txt) so I'm wondering what's the best way to remove the 's for proper indexing/search?
repr('s')[1:-1]
repr('s').strip("'")
Unfortunately some characters are being escaped which I don't want escaped using repr such as '.