Hey Ash,Bastien! <clip> Rather than a regex, you're probably better off using something like DomDocument, where you can iterate over all of the input elements in the document, and check the attributes of each one to check if they match your criteria. </clip> @Ash, You're kinda reading my mind... i did do this in domDocument but it didnt work out so well... so now am trying to do this in a diff way. Is it ok if i send you the code via an attachment? it is REALLLL messy code right now though. @Bastien, you're talking client side... i need to do this server side as then i am writing the results to a file which is going to be used as a template in other scripts. Thanks! Ryan