Thanks you. I think this is too much specific problem ...
I want to match this two expresions:
I want any form thath consider the first sentence how a expresion regular.
So, if I have:
$s = "(DET|The) (NUM|14) (PREP|of) (MONTH|January|February)"
I look up about a form thath:
(I'd like change =~ signification, by example creating a function)
$s =~ /The 14 of January/ => True!!!

$s =~ /The 14 of February/ => True!!!

$s =~ /DET 14 PREP January/ => True!!!

$s =~ /The NUM of MONTH/ => True!!!

$s =~ /The NUM of MONTH( of YEAR)?/ => True!!!
Obviously this is imposible in Perl, but How can I do a function thath works fine (whithout a combinatorial order)?
I think it is a difficult issue. (is it issue correct here?)
Thanks