I created a yaml file for my project’s configuration file and I get this error when trying to pull the regex from this yaml file.
Error:
exception in thread "main" while scanning a double-quoted scalar
config.yml
regex: "\((.*?)\)"
I edited my configuration file as follows and the error is resolved
config.yml
regex: "((.*?))"
But this time I break the regex and my filtering is not successful
Matcher matcher = Pattern.compile(config.getRegex()).matcher(message);
New contributor
Scropy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.