I have a string as below
when
$Event:com.abc.Event(description == "abc")
then
logger.info("description");
I need to replace the above string with below
when
$Event:com.abc.Event(description == "abc") from entry-point "EventStream"
then
logger.info("description");
In the same way when i encounter
when
$Alarm:com.abc.Alarm(description == "abc")
then
logger.info("alarm description");
i need to change as below
when
$Alarm:com.abc.Alarm(description == "abc") from entry-point "AlarmStream"
then
logger.info("alarm description");
i would like to replace the string using regular expression using greedy match. Please provide me some pointers to acheive the same.