iirc, not all versions of awk have this capability, and some may need an explicit option (gawk needs --re-interval) to be able.

sed always can.