In a file I have following set of data
FX_DETAIL_69#chf4
FX_DETAIL_75#chf1
FX_DETAIL_07#bluXCFG#chf2
FX_DETAIL_99#bluXCFG#chf9
FX_DETAIL_62#chf6
I have written the following regular expression in Python:
FX_DETAIL\_(\d+)\#(\w+)
How can I use the optional option to exclude value .bluXCFG?