Use regex to add {} to a guid -
I have an XML file with a list of items:
& lt; Item ID = "1B884B58-0C47-451B-956E-44866A7F3F91" name = "Home" Template ID = "BD5B78E 1-107E-4572-9DD-3F11F8 A7534 E "MasterID =" 00000000-0000-0000-0000-000000000000 "ParentID =" 70 A77564-8 D3F-45 9E-850F-FFC79CC97B38 "Created =" 2009-07-1712-12: 18 : 57.247 "updated =" 2009-08-14T14: 08: 38.970 "/>
I need to run a regex that is essentially visible on each GUID, and adds curly braces around the grid, like
{B884B58- 0C47-451B-956E-44866A7F3F91} There are multiple acceptable formats for GUIDs, but only sticking are specified by you With one:
/ ([0-9A-F] {8} - [0- 9AF] {4} - [0- 9AF] {4} - [0- 9AF] {4} - [0- 9A-F] {12}) / {$ 1} / g
Comments
Post a Comment