I'm parsing through data, and I need to be able to identify numbers. I'm not real good with RegEx, so I thought I'd try something different and easy.
First, this REGEX pattern seems to work for me: ^[-+]?\d+(\.\d+)?$ -- I can use Google.
But now I'd like to know why my alternative method doesn't work:
Error Handling and Number Recognition
Moderators: Dorian (MJT support), JRL
Error Handling and Number Recognition
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Error Handling and Number Recognition
123.avc is not a number, so trying to add 1 to it will cause an error.
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?
Re: Error Handling and Number Recognition
Hi Marcus,
The question was more directed at why the IGNOREERRORS didn't work. I should have been clearer.
The question was more directed at why the IGNOREERRORS didn't work. I should have been clearer.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Error Handling and Number Recognition
Oh. Will look at that. It certainly should do. If ignorerrors is not preventing it that must be a bug.
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?
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Error Handling and Number Recognition
Just to let you know that we now have this fixed in dev for the next update. The error was not being trapped by the regular error handler. That's now been fixed for the next release so that you can suppress/trap the error in the way you were expecting.
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?