Python Regex Expression that finds variable string between whitespace, punctuation and/ or string end
I need the regex expression to find a substring (it’s a variable) that is either preceded/followed by punctuation, whitespaces or the start/end of the string. I don’t know the size or content of the substring. I’ve come up with [\?\.!\- ]1abc[\?\.!\- ] (this is a specific example where the substring is 1abc) but I don’t… Read More Python Regex Expression that finds variable string between whitespace, punctuation and/ or string end