Premium problem71. Filter Rows Matching a Regex

Medium Locked

Return only the rows where name starts with the whole word "Will" as its own word: "Will Turner" matches but "Willow Tree" does not, since "Willow" merely starts with the same letters.

Input

                  name
0          Will Turner
1  William Shakespeare
2            Bob Smith
3          Willow Tree

Output

          name
0  Will Turner

Premium problem

This one's part of Premium. Unlock the full Pandas track plus every other premium problem on the site.

Implement solve(...)