ODBiC Discussion Board


Match

by Dave, April 17, 2007 11:26

Hello -

I need to be able to match a few things:

1ZA will be the first part of a larger number 91011 will be the first part of a larger number 510 will be the first part of a larger number No Match on any pattern

My code looks something like this:

<!--IF match($Tracking_ID$, "^?[91011]{5}")--> <a href="h t t p://address1/$Tracking_ID$" target="_blank">$Tracking_ID$</a>  
	<!--ELSE-->  
	<!--ENDIF-->
	<!--IF match($Tracking_ID$, "^[1ZA]{3}")--> <a href="h t t p://address2/$Tracking_ID$" target="_blank">$Tracking_ID$</a>  
	<!--ELSE-->
	<!--ENDIF-->
	<!--IF match($Tracking_ID$, "^[501]{3}")--> <a href="h t t p://address3/$Tracking_ID$" target="_blank">$Tracking_ID$</a>  
	<!--ELSE-->
	<!--ENDIF-->
<!--:IF NOT MATCH ($Tracking_ID$, "^[91011]?|[1ZA]?|501]")Unknown  $Tracking_ID$</a>  
	<!--ENDIF-->
I keep getting duplicated links because 2 of the conditions are met when only one should be met... any help would be much appricated.

Thanks, Dave


Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.