Issue was with the code when the regex needs to resolve multiple variables (Ex.no snmp-server host $ {var3} ${var3}) in the single line and line by line scope used.
This patch is developed for 9.4.1.0 without any previous patches. Please do not apply if you have any additional patches applied.
Please follow these instructions to deploy the patch.
1. Download the attached services-9.4.0.0.jar to a temp directory
2. Take a backup of the existing services-9.4.0.0.jar
cp $VOYENCE_HOME/ncmcore/webapps/ncm-webapp/WEB-INF/lib/services-9.4.0.0.jar <Backup Directory>
3. copy the attached jar file to the same location.
$VOYENCE_HOME/ncmcore/webapps/ncm-webapp/WEB-INF/lib/services-9.4.0.0.jar
4. change ownership permission.
chown root:voyence $VOYENCE_HOME/ncmcore/webapps/ncm-webapp/WEB-INF/lib/services-9.4.0.0.jar
5. service ncm-as restart
Please verify that Regex Test. If any other issue occurs, revert back to old jar.
This issue will also be fixed in future releases of NCM