SOLVED! REGEX error - Line: Expecting ,, range, found

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

SOLVED! REGEX error - Line: Expecting ,, range, found

Post by mightycpa » Mon Mar 09, 2015 7:35 pm

A picture is worth a thousand words here. I have no idea what this error means. Can you help me out?

All I want to do is count the number of periods in a string. I'm sure I'm missing something fundamental, but I don't know what it is.

Here are the current values:
Image

Here's the error:
Image
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: SOLVED! REGEX error - Line: Expecting ,, range, found

Post by mightycpa » Mon Mar 09, 2015 7:52 pm

Code: Select all

//**BREAKPOINT**
      //Let>pd_pattern=.  
      RegEx>\.,%new_item%,0,matches,v_num_matches,0
. matches all chars... escape the dot matches a period
WHO KNEW?
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: SOLVED! REGEX error - Line: Expecting ,, range, found

Post by Marcus Tettmar » Tue Mar 10, 2015 10:42 am

mightycpa wrote:WHO KNEW?
I did, but you got there before I saw your post ;-)

http://www.regular-expressions.info/dot.html
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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