It's been years (and years) since I've done any regex, so turning to experts on here since it's likely a trivial exercise :)
I have a tab delimited file and on each line I have a certain fields that have values such as:
- foo
- bar
- b"foo's bar"
- b'bar foo'
- b'carbar'
(A complete line in the file might be something like:
123\t b'bar foo' \tabc\t123\r\n
I want to get rid of all the leading b', b" and trailing ", ' from that field on every line. So given the example line above, after running the regex, I'd get:
123\t bar foo \tabc\t123\r\n
Bonus points if you can give me the python blurb to run this over the file.