Hi All!
Looking for the following help. I am using matches with regex to pull selected information from a text file. However, my innumerable match is capturing empty arrays. I am trying to pull the IDs out.
Text used in match example:
Patient Account Number:
12345678
Patient Account Number:
123456789
Patient Account Number:
12345678
Regex I am trying to use:
(?<=Patient\sAccount\sNumber:\s)(.*\s)
arivu96
(Arivazhagan A)
January 3, 2022, 3:45pm
2
Try this
(?<=Patient Account Number:)\s.*
Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.
Regards,
Arivu
Had to use (?<=Patient\sAccount\sNumber(:\s|\s))\n(\d{1,12}) even though it was failing regex editor.
system
(system)
Closed
January 6, 2022, 4:02pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.