07 add regex logic in java