I have regex for guid:
/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
And regex to match a number:
/^[0-9]*$
But I need to match either a guid or a number. Is there a way to do it matching a single regex. Or should I check for guid and number separately.