I wish to extract certain string based on fixed pattern of the input String I am providing and for this I am using Matches activity of Uipath. The problem I am facing is while extracting data from multiple lines. My Input String looks like below:
28 - Country - Germany (DE)
83 - Location - F 709, Ludwigshafen, Germany
448 - Building - F 709
449 - Floor - EG
450 - Room - 3
461 - Remark / Comment - Example Text
519 - Number of LAN ports -
723 - Wall outlet number - Example Number
1046 - Patch removal -
1047 - GSP Message ID - Port_Patching
1122 - Aftercare - Aftercare
Expression before “-” is the fixed pattern for all lines, like in "448 - Building - " left site expression is fixed. If I wish to extract only one line, Matches is working fine with Pattern “448 - Building - (.*)” but if I want to extract data from more lines, it fails.
can anyone suggest how can I use multiple patterns to extract multiple expressions.