Matches Regex Returning Empty Arrays

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)

Try this
(?<=Patient Account Number:)\s.*

Regards,
Arivu

Had to use (?<=Patient\sAccount\sNumber(:\s|\s))\n(\d{1,12}) even though it was failing regex editor.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.