Hi All,
I facing some difficulties in extracting out the information out of a email body.
"Event Source : xx-xxxxxx",
"Identifier Link:",
"https://console.aws.amazon.com/rds/home?region=ap-southeast-1#snapshot:id=rds:aaaaaaa-2023-03-21-12-06",
"SourceId: rds:aaaaaaa-2023-03-21-12-06",
"Notification time : 2023-03-21 12:08:32.758",
"Message : Automated snapshot created",
"Event ID :",
"http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.Messages.html#RDS-EVENT-0091",
"--",
"If you wish to stop receiving notifications from this topic, please click or",
"visit the link below to unsubscribe:",
"https://sns.ap-southeast-1.amazonaws.com/unsubscribe.html?SubscriptionArn=arn:aws:sns:ap-southeast-1:123-123-123-123:Prod-AWS-Backup-Alerts:xxxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxxxx&Endpoint=xxx@xxx.xxx",
"Please do not reply directly to this email. If you have any questions or",
"comments regarding this email, please contact us at",
"https://aws.amazon.com/support",
1. Can someone please show me how to extract out just the hh:hh from ["Notification time : 2023-03-21 12:08:32.758",]
2. Can someone please show me how to extract / slice out the just the word [aaaaaaa] from [aaaaaaa-2023-03-21-12-06]