I\'m trying to execute this code :
import re pattern = r\"(\\w+)\\*([\\w\\s]+)*/$\" re_compiled = re.compile(pattern) results = re_compiled.search(\'COPRO*H
Interestingly, Perl runs it very quickly
-> perl -e 'print "Match\n" if "COPRO*HORIZON 2000 HOR" =~ m|(\w+)\*([\w\s]+)*/$|' -> perl -e 'print "Match\n" if "COPRO*HORIZON 2000 HOR/" =~ m|(\w+)\*([\w\s]+)*/$|' Match