Update formula.js

This would return the capture group in the event the user adds a capture group to the regex.