Oct-06-2020, 01:12 AM
(Oct-06-2020, 12:40 AM)ridgerunnersjw Wrote: I have the following :
What is the best way to parse this to remove all and get 005 (middle term)?
Output:b'011;005;080;'
You can use regular expression as the example below:
import re v_ent = "b'011;005;080;'" v_sub = "005" v_out = re.sub(r"b'011;005;080;'", v_sub, v_ent) print(v_out)