Use regex for OS matching