The easiest option is to call str2guid() and check if you get a value (as done in AifMessage::validate()). Another way would be to use System.Guid::Parse()/TryParse(). Yet another would be to use a regular expression.
↧
The easiest option is to call str2guid() and check if you get a value (as done in AifMessage::validate()). Another way would be to use System.Guid::Parse()/TryParse(). Yet another would be to use a regular expression.