You should add \ in front of + to recognize the symbol, not as an increment
r'ID\s+([0-9]+)\s+linea\+b\s+([0-9]+)\s+'
solved how to extract data with regex in python? [duplicate]
 
You should add \ in front of + to recognize the symbol, not as an increment
r'ID\s+([0-9]+)\s+linea\+b\s+([0-9]+)\s+'
solved how to extract data with regex in python? [duplicate]