added basic flags to ignore pattern capture groups