Can anyone help with the following....
I am tryiing to write a Regular Expression Patterm to find all instances within a string.
The data is a date/time followed by a name followed by (Work notes) or (Shared notes) and then the actual notes.
e.g. the string would look like this....
So I would like the pattern to find the following
I am tryiing to write a Regular Expression Patterm to find all instances within a string.
The data is a date/time followed by a name followed by (Work notes) or (Shared notes) and then the actual notes.
e.g. the string would look like this....
26/07/2019 02:27:30 BST - System (Work notes)
Restore SLA reached 50%
Restore SLA reached 50%
24/07/2019 09:12:34 BST - Mark Shaw (Shared notes)
Will be back at her computer at about 14:00 today.
Will be back at her computer at about 14:00 today.
22/07/2019 12:55:29 BST - Mark Shaw (Work notes)
Requested a call back at 13:30.
Requested a call back at 13:30.
22/07/2019 12:13:58 BST -
'Mark Shaw' has called 'Sandra Roden'
Mark O'Brien
(Work notes)'Mark Shaw' has called 'Sandra Roden'
So I would like the pattern to find the following
Match 1 26/07/2019 02:27:30 BST - System (Work notes)
Match 2 24/07/2019 09:12:34 BST - Mark Shaw (Shared notes)
Match 3 22/07/2019 12:55:29 BST - Mark Shaw (Work notes)
Match 4 22/07/2019 12:13:58 BST - Mark O'Brien (Work notes)
Match 2 24/07/2019 09:12:34 BST - Mark Shaw (Shared notes)
Match 3 22/07/2019 12:55:29 BST - Mark Shaw (Work notes)
Match 4 22/07/2019 12:13:58 BST - Mark O'Brien (Work notes)
I don't seem to have a problem matching the date/time but can't seem to expand the pattern match to find the rest of the line? (reason I want to do this rather than just use the date/time is sometimes date/times are also found in the notes and I wish to ignore these)
Any suggestions would be greatly appreciated.
Any suggestions would be greatly appreciated.
Last edited by a moderator: