QRegExp - how to parse (G)UID?
-
I mean, that my application will have to parse (G)UID with this syntax:
@{[0-9A-F]{8}-[0-9A-F]{8}-[0-9A-F]{8}-[0-9A-F]{8}}@
What is wrong in this regexp ? -
Maybe you need to escape { ?
@
{[0-9A-F]{8}-[0-9A-F]{8}-[0-9A-F]{8}-[0-9A-F]{8}}
@ -
No. Doesn't work...
-
As Wikipedia says GUID has another format.
This should help you
@
{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}}
@And don't forget that you need to double \ in C++ code.
-
Well, doesn't matter about format. I don't have any clue about QRegExp (cause it requires training)...
-
[quote author="Peppy" date="1311625901"]Well, doesn't matter about format. I don't have any clue about QRegExp (cause it requires training)...[/quote]
What do you need to know? It's pretty straightforward. Anything specific we can help you with?
-
Yes. It has something like order of commands, order of parsing or something like that, how it works...then I will understand it...how it works...
-
I think that you need to read something like "this":http://www.regular-expressions.info/