Is there any wildcard or place holder that can be used with the Position> command. I cannot find anything in the help or on the forum. The goal is to be able to use something similar to this
*.*.*.*
Which would find the start positon of of anything that has three periods in the line such as an ip address. I realize that in this case I could use the position command and send it three times to varify a line and then count the characters but this seems in flexible.
I say this as what if a user wants to change it they have to change all of the code as opposed to just changing a wildcard string.
If not a wildcard a place holder such as "?"
this??. would search for a string that has "this" two characters and then a period.
Is there any way to do this with out searching for "this" when the positon is found adding 6 characters and checking for a period.
Wildcard or place holder for Positon
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Sounds like what you are asking for is indeed Regular Expressions.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Macro Scheduler supports the VBScript RegExp Object.
See VBScript help for RegExp here: http://msdn.microsoft.com/en-us/library ... S.85).aspx
See VBScript help for RegExp here: http://msdn.microsoft.com/en-us/library ... S.85).aspx
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!