Assuming the "#" character is your delimiter, an example regex for THREE id values would be([^#]+)#?([^#]+)?#?([^#]+)? And if you have 3 classifications, called something like "FirstID", "SecondID", and "ThirdID", you'd set the values for them in the rule builder as $1, $2, and $3 respectively