kittu2u Posted December 3, 2019 Report Share 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 Link to comment Share on other sites More sharing options...
Kumaravaarma Posted December 3, 2019 Report Share 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 Link to comment Share on other sites More sharing options...
Amrita Posted December 3, 2019 Report Share Posted December 3, 2019 Just for this or dynamically anni similar vatiki avvala? Patter and matcher chudandi. Quote Link to comment Share on other sites More sharing options...
kittu2u Posted December 3, 2019 Author Report Share Posted December 3, 2019 I am trying to get this out from cloudtrail insights , so regex use cheyyali. Just for this Quote Link to comment Share on other sites More sharing options...
kittu2u Posted December 3, 2019 Author Report Share Posted December 3, 2019 LTT Please Quote Link to comment Share on other sites More sharing options...
karthikn Posted December 3, 2019 Report Share 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 Link to comment Share on other sites More sharing options...
kittu2u Posted December 3, 2019 Author Report Share Posted December 3, 2019 Thanks Bro , It worked 1 Quote Link to comment Share on other sites More sharing options...
karthikn Posted December 4, 2019 Report Share Posted December 4, 2019 Just now, kittu2u said: Thanks Bro , It worked Quote Link to comment Share on other sites More sharing options...
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.