kittu2u Posted December 3, 2019 Report Posted December 3, 2019 Evaru ayina regex meda work chesara , need small help. This is the string : arn:aws:s3:::0000-0000-0000-daring-non-archived/etest/abcd/prc/ I want the output of the regex to be till "arn:aws:s3:::0000-0000-0000-daring-non-archived/etest/" Quote
Kumaravaarma Posted December 3, 2019 Report Posted December 3, 2019 don't use regex. Create a plain text with arn:aws:s3:::0000-0000-0000-daring-non-archived/etest/" and write it to the o/p file. Quote
Amrita Posted December 3, 2019 Report Posted December 3, 2019 Just for this or dynamically anni similar vatiki avvala? Patter and matcher chudandi. Quote
kittu2u Posted December 3, 2019 Author Report Posted December 3, 2019 I am trying to get this out from cloudtrail insights , so regex use cheyyali. Just for this Quote
karthikn Posted December 3, 2019 Report Posted December 3, 2019 24 minutes ago, kittu2u said: Evaru ayina regex meda work chesara , need small help. This is the string : arn:aws:s3:::0000-0000-0000-daring-non-archived/etest/abcd/prc/ I want the output of the regex to be till "arn:aws:s3:::0000-0000-0000-daring-non-archived/etest/" ^.*(?=[a-z]{4}\/[a-z]{3}\/) go to regex101.com and test 1 Quote
karthikn Posted December 4, 2019 Report Posted December 4, 2019 Just now, kittu2u said: Thanks Bro , It worked Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.