I try to replace String via regex.
Target String :
if (ValidationUtil.checkNullable(groupDataObject) || !groupDataObject.isNotificationEnable() ||
Regex
.*(ValidationUtil\DcheckNullable)([a-zA-Z0-9]*).*
Replace pattern
$2 == null
Wishful result :
if (groupDataObject == null || !groupDataObject.isNotificationEnable() ||
And it's not worked. It produce result == null.What i'm doing wrong?