changing to regex format