For example; Whe use projectnumbers like these "1234", "1234-01", "1234-1W12", "1234-01W12", "1234-01W123" or "1234W1" The firts four characters represent the basic projectnumber and are always numbers. (ascii between 48 and 57) Optional in this order it can be folowed by; The "-" followed by a number represents a project-part and the "W" follwed by a number represents a change to a project or projectpart Not like this: "1234W12-01" I want to check the mask of this projectnumber against eny other type of string to notify the user the wrong textmask is being used. Has anyone got some sugestions on how to approach this? I know the difficulty is in in the "-" en "W" folowed by one or more numbers being optional an wich can varry. Regards M