Get your own PHP server

Regex Modifier: o{2,5}

How many occurences of at least 2 preceeding o's (oo), but not more than 5 preceeding o's (ooooo) are in the text "W3Schools is goood"?:

2

The matches were found here:

W3Sch#ls is g#d

(Each match was replaced by a # character)