-1

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?

gibarian
  • 133
  • 6

1 Answers1

0

Just for clarification, I found the code by myself:

(r'.*ng','VGER')

works.

gibarian
  • 133
  • 6