whoops didn't think about that. I added i to the regex command so it's case insensitive and S to strip color codes and such.

code in previous post is updated