More flexible regex