RegEx Help

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

RegEx Help

Post by PepsiHog » Sun Jan 15, 2012 1:44 am

Hello Everyone,

I am trying to place a zero in front of a two digit number with regex. Is it even possible to do this?

Here is what I was thinking. (that didn't work)

let>Value=12
RegEx>^\d\d$,Value,0,SCV,SCVnum,1,\0%1%2,Test
RegEx>^??$,Value,0,SCV,SCVnum,1,0%1%2,Test

And I tried others, but they failed as well. The var Value will always contain digits, so I don't really need to specify digits. Currently I am using an IF followed by a Let to add the zero. But I would like to do it with RegEx because that is what I am learning. Plus, and I know it doesn't matter, it's neater.

Please Help and thanks.
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

User avatar
PepsiHog
Automation Wizard
Posts: 511
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

hello

Post by PepsiHog » Thu Jan 26, 2012 1:57 pm

This guy is a pumkin IDIOT!! It's right in front of him!! And he can't get it!!!

.......or did he?

8) 8) 8) 8) 8) 8) 8) 8) 8) 8)
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2021) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts