in reply to Regular Expression ?

usually you simply use a loop ... show your code