Ok...so I was getting bold and adventurous...so I tried to do a RegEx find..
I musta made a BIG boo-boo cause I got an error.."Unexpected Quantifier. Ensure your search pattern is properly constructed"...fine...but then after clicking on that, I get a "Runtime error 13" and the name and location boxes get cross-hatching...and then as usual, XY exits out...
The failing RegEx entry was ">*.(bmp|jpg)"
Runtime error '13' : type mismatch
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Runtime error '13' : type mismatch
Well there are a couple of differences between standard search patterns and RegExp ones, following the RegExp meanings:j_c_hallgren wrote:Ok...so I was getting bold and adventurous...so I tried to do a RegEx find..
I musta made a BIG boo-boo cause I got an error.."Unexpected Quantifier. Ensure your search pattern is properly constructed"...fine...but then after clicking on that, I get a "Runtime error 13" and the name and location boxes get cross-hatching...and then as usual, XY exits out...
The failing RegEx entry was ">*.(bmp|jpg)"
. (dot) Matches any single character except line break characters \r and \n.
* (star) Repeats the previous item zero or more times.
So, you actually used the repeat char before there wasn't anything to repeat.
Try this one instead, which worked here: ">.*(bmp|jpg)"
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
RalphM, so that would be proper RegEx to look for all .BMP and .JPGs?
I'm wanting to combine "*.bmp" and "*.jpg" patterns...
It seems to find other files with JPG and BMP as part of name and not an extension...that was my goal...and I didn't see any example that appeared to match this type of search...
In any case, it shouldn't really "crash & burn" if a bad regex is input...
I'm wanting to combine "*.bmp" and "*.jpg" patterns...
It seems to find other files with JPG and BMP as part of name and not an extension...that was my goal...and I didn't see any example that appeared to match this type of search...
In any case, it shouldn't really "crash & burn" if a bad regex is input...
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Ok, so I'm NOT really mad...was just a bit irritated...I somehow managed to get that bad regex saved so that when I tried to close 2nd tab, it would then contantly crash on tab 1!
I looked in the INI file but didn't see the regex...ok...so where would it be hiding?
Ah-ha! Saw the FindTemplates folder...maybe there?..yes! Found the regex in tab_2.dat! So edited it to a valid string and all is well...
I looked in the INI file but didn't see the regex...ok...so where would it be hiding?
Ah-ha! Saw the FindTemplates folder...maybe there?..yes! Found the regex in tab_2.dat! So edited it to a valid string and all is well...
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact: