Hi @Jugal.Shroff,
Using the examples in our Regex doc, you can try the following for tag1 and tag2:
For Tag1: {{message.extract(/tun-(\S+)\-.*\-\"(\S+)\"-.*/, 1)}}
For Tag2: {{message.extract(/tun-(\S+)\-.*\-\"(\S+)\"-.*/, 2)}}
In the example text you gave, I am assuming the word "tun-" and the dashes following are "static".
The other option to try would be:
For Tag1: {{message.extract(/tun-(\S+)\-.*\-\"\S+\"-.*/)}}
For Tag2: {{message.extract(/tun-\S+\-.*\-\"(\S+)\"-.*/)}}
You can test the 2nd method in regex101.com as well, for example:
This is how I had tested:
Hope the above point you in the right direction. All the best!
Thanks for your help. Its not workking for me.
I want to tag details after tun-thiswillchange with new alert (my first tag)-xxx(not static)-thiswillchange with new alert (my second tag)-xxx(not static)-xxx(not static)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my second tag contents charector and number combination minimum 2 and maximum 3 charector and number combinations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.