How to write a regular expression growth and what grade the person?

Mike is studying in grade 3, his height is 150 cm.

Need to write a regular expression. My efforts were crowned with success '[0-9]+ cm'.
April 7th 20 at 15:35
2 answers
April 7th 20 at 15:37
One or more digits (remember)
Space
"class"
Many non-digits
One or more digits (remember)
Space
"cm"
Thanks for the response, as you would in a mathematical expression to write, and that the Russian description of me is of little use. I'm new to regular expressions and while I find it difficult. - Maxie36 commented on April 7th 20 at 15:40
@Roderick,

https://regex101.com/r/3GWoag/1 - guillermo_Hilpert commented on April 7th 20 at 15:43
April 7th 20 at 15:39
\b\d{2,3} see\b
\b\d{,2} in class\b

Find more questions by tags Regular expressions