I need to parse the following format @[Alphanumeric1](Alphanumeric2:Alphanumeric3) from a long string. Below is my string:
This is a long text
@[Alphanumeric1](Alphanumeric2:Alphanumeric3) again long text
@[Alphanumeric11](Alphanumeric22:Alphanumeric33) again long text
@[Alphanumeric111](Alphanumeric222:Alphanumeric333)
I need all the occurence of(@[Alphanumeric1](Alphanumeric2:Alphanumeric3)) to be replaced by value which is coming after colon(:) i.e I want the output as
This is a long text
Alphanumeric3 again long text
Alphanumeric33 again long text
Alphanumeric333
This should do the trick: