the string is 'POSIX TAR ARCHIVE (GNU)' the regex pattern '(TAR)|(POSIX)'
python code :
import re
pattern = '(TAR)|(POSIX)'
string = 'POSIX TAR ARCHIVE (GNU)'
match = re.search(pattern, string , re.IGNORECASE)
match.groups()
the result is only POSIX not tar why??