Support extglob option

Welcome to
?(...)
*(...)
+(...)
@(...)
!(...)