my @temp = $str =! /([PT]\d+[YMWDHMS])/g; [download]
In reply to Re: regex - parsing a string with many optional fields by delirium in thread regex - parsing a string with many optional fields by Anonymous Monk