I am trying to extract the letters out of string, but I can't get it done correctly. Any help will be very much appreciated.
String: 20200702_abcd_ef_aed_usd_cdee_hgd.csv
Expected: abcd_ef_aed_usd_cdee_hgd
Actual: _abcd_ef_aed_usd_cdee_hgd
Here is the code, any help can remove the leading _
?
import re
re.search('[A-Z_]+', "20200702_abcd_ef_aed_usd_cdee_hgd.csv").group()