I have this kind of strings:
string = '
something .... something else ...
url="/transfer/packages/00000000-0000-0000-0000-000000000000/connectors/68f74d66-ca3d-4272-9b59-4f737946b3f7/something/138bb190-3b12-4855-88e2-0d1cdf46aeb5/...../...../...../...../...."
other things ...
'
without any CR/LF, it is all on one line.
I want to create a regex which:
- if and only if the url starts with
/transfer/packages/
- captures each subsequent GUID
- until the end of the quoted string
"
- the number of GUID to be found is unknown and is at least one
So far I wrote:
\/transfer\/packages\/[^"]*([A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12})"
but it only capture the LAST guid. I need some how to reuse the prefix /transfer/packages/
and keep matching eagerly expanding the search each time without moving on from the prefix.