src/vs/workbench/contrib/tasks/common/problemMatcher.ts/ProblemPatternParser/createRegularExpression
class ProblemPatternParser:	private createRegularExpression(value: string): RegExp | undefined {
		let result: RegExp | undefined;
		try {
			result = new RegExp(value);
		} catch (err) {
			this.error(localize('ProblemPatternParser.invalidRegexp', 'Error: The string {0} is not a valid regular expression.\n', value));
		}
		return result;
	}