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
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
-
RalphM
- Posts: 2092
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
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 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- 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...
-
admin
- Site Admin
- Posts: 66431
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
-
admin
- Site Admin
- Posts: 66431
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
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...
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
-
admin
- Site Admin
- Posts: 66431
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
XYplorer Beta Club