C
Carl Gilbert
Hi
I have a script editor and I need to replace sections of the script with
Guids. The script might look something like:
'some text @varUser more text @varClient.Label'
I would like to replace anything that starts with an @ with a Guid.
Therefore I need to search the text for anything that begins @ and ends with
a space or a period.
I can then take this text and replace it with a Guid.
So based on the above example, I would get something like:
Find @, get text after @, find a space, use text to get Guid, replace text
with Guid
@varUser becomes @A91E3B82-15F6-49ED-B7B8-08C706E3940C
Find @, get text after @, find period, use text to get Guid, replace text
with Guid
@varClient.Label becomes @0611222D-A45D-4997-9282-9ED9F8743A70.Label
Does anyone know of any methods or text functions that may help me to
acheive this?
Regards, Carl
I have a script editor and I need to replace sections of the script with
Guids. The script might look something like:
'some text @varUser more text @varClient.Label'
I would like to replace anything that starts with an @ with a Guid.
Therefore I need to search the text for anything that begins @ and ends with
a space or a period.
I can then take this text and replace it with a Guid.
So based on the above example, I would get something like:
Find @, get text after @, find a space, use text to get Guid, replace text
with Guid
@varUser becomes @A91E3B82-15F6-49ED-B7B8-08C706E3940C
Find @, get text after @, find period, use text to get Guid, replace text
with Guid
@varClient.Label becomes @0611222D-A45D-4997-9282-9ED9F8743A70.Label
Does anyone know of any methods or text functions that may help me to
acheive this?
Regards, Carl