I know one can calculate the number of appearances of a certain pattern in a given text as explained in this answered question.
Now, when defining terms for regular expressions, I am making use of commands such as
(r'.*ing$','VGER')
to define new patterns (in this case verbs in gerund time for words ending in 'ing').
My question is: how to define a similar pattern for word containing, say, the substring 'ng' in every position of the word?