config.newValue has value as "888888888888"
and config.regex has value as "/[0-9]{12}/"
let matches = String(config.newValue).trim().match(config.regex);
variable matches should return value as true but it is returning value as null .
Can anyone please help what it is not accepting the correct validation.Validation is only to check that the number is of size 12 and it has digits from 0 to 9 .