Bhagwan Sahai wrote:
Hi,
Can anybody make the regular expression of following? I need it for
badboy script.
F8791737-3294-4d92-a12b-5082607fdda
There are several regular expressions that will match that, but only a
few that are useful.
"F8791737-3294-4d92-a12b-5082607fdda" is a valid relular expression that
will match that, and only that.
".*" is a regular expressions that will match that and absolutely
anything else.
I suspect that what you want is a regular expression to match GUIDs (It
would be much easier to help if you gave a better description of the
_set_ of things you want to match, like telling us that they are GUIDs
or describing the general form).
This is a regular expression that matches GUIDs:
[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}
FYI, if the string you sent us is a GUID, you've missed the last
character. If it's not, change the '12' in that regexp to read '11'
Hope that helps,
# r
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
[EMAIL PROTECTED]
www.groupbc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]