Hi Guys,
I have a list of vars saved in a .ini, the vars all begin with "@":
[Myvarlist]
1=@apples
2=@oranges
3=@banannas
The script calls var 1, on loop one, var 2 on loop 2 ect, and they are already used in my script for one purpose, which requires the @ symbol, but I need to use them again later in the script.
For the second use I need to clone the current value to another var, then remove the preceeding @ symbol.
Can anyone tell me how to do this?
Thanks,
Nick.
How To Strip @ Symbol From Var
Moderators: Dorian (MJT support), JRL
Re: How To Strip @ Symbol From Var
Figured it out thanks to a post Marcus made:
Let>NewHandle=%OrigiVar%
Let>trimmatch=@
RegEx>trimmatch,NewHandle,0,matches,numMatches,1,,NewVar
MessageModal>%NewVar%
Let>NewHandle=%OrigiVar%
Let>trimmatch=@
RegEx>trimmatch,NewHandle,0,matches,numMatches,1,,NewVar
MessageModal>%NewVar%
- CyberCitizen
- Automation Wizard
- Posts: 721
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia