More flexible regex thing