Can this line (and 77) be replaced with the static method (rather than using the regex directly?)