Make replaceText() count the sub-groups.
Make replaceText() count the sub-groups.

Instead of requiring the number of capturing groups as an argument,
match the provided expression with the empty string to see how many
groups are captured.

(cburschka/cadence#235)

cburschka/jquery-replacetext