I have a query using eGrep in Bash on MacOS, and wondered how to convert it to grep query instead, as I understand eGrep is deprecated now, or is being replaced in favour of grep?

I need to convert this;

```
egrep "^\s+2\.\d+\.\d+$" <(rbenv install -l) | tail -1

```

Basically it is looking in the RBENV install list for the latest 2.x version so it can install it later on, this portion of code harvests the version number I need and stores it in a VAR for later use ;)
Any help would be greatly appreciated