|
-
Feb 25th, 2008, 01:40 PM
#1
Thread Starter
PowerPoster
Re: How to Extract GUIDs out of a string?
Actually I just got it!
Dim ms As MatchCollection = Regex.Matches(_TreeNode.Parent.ValuePath.ToUpper, "[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}")
Me.ParentGUID = ms.Item(ms.Count - 1).Value.ToLower '--Get the last item, it is the parent guid.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|