Closed myearwood1 closed 2 months ago
@myearwood1
Not sure what is going on yet as I cannot reproduce your regex search expression. I see this:
My guess is that when you paste it in here some of the special characters get translated.
^((?:REPO|REPORT)\s+FORM|CJREPORT).*?\*invoice\*$
I thought of another way... *repo*invoice
and use wildcard. I have never released a utility for developers to use like GF. I mean MaxFrame was a framework over the development. I think I'd have made GF an EXE, because then in VFP9 you could include an internal and or external config.fpw and get more control over GFs environment.
@myearwood1
I thought of another way...
*repo*invoice
and use wildcard.
Yes, my normal mode is to use wildcards:
repo*form*invoice
You, obviously, are quite comfortable with regular expressions. I'm not, but find that using wild cards almost always meet my needs, particularly since the intro of GF7 -- wild card matches now apply to entire statements and not just single lines.
@myearwood1
I think I'd have made GF an EXE.
Too late for that, that ship has sailed.
Even so, I wonder about some pitfalls with GF were it an EXE:
All a moot point, as I do not expect any movement to a EXE.
Fox is different that way. A Fox exe does not have to be called as other exes. The exe running in the development environment can be debugged etc. I wouldn't doubt it till you see it.
I'm not comfortable with regex by far. There are people who speak it like they were genetically modified to use it. I did start chatting with the vfp2c32.fll developer. He did the neatest code I've seen in a while. He had FoxPro ask windows to read in a file in multiple pieces asynchronously
Fixed in Version 7.1.15 - 2024-07-10
Yes. I tried it and it's much better. THERE*IS*NO
took 19.1 seconds (565 lines in 170 files) and THERE\s+IS\s+NO
regex took 29.7 seconds (355 lines in 126 files). The regex is specific about white space where the * grabs everything between THERE and IS.
@myearwood1
The dramatic speed improvement in RegEx searching (thanks!) is less than three months old.
Until then, regex searching was so painfully slow that I am sure most devs avoided it altogether and were content to put up with the extra chaff to put up with from wild card searching. Thus the habits were formed.
Thanks for your efforts to make that happen. Just so you know, since I've seen the vfp232c guys work, I'm still trying for a module that can read in content and regex it in one massive gulp, from inside vfp. That will allow you to handle any number of files or memo fields or memory variable. That will give you a single regex implementation that can handle some of the more powerful features of regex.
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
What is the expected result of the above steps?
Blink fast searches
❌ Actual result
What is the actual result of the above steps?
Really slow searches. I had not tried such a search in a while, nor have I tried a more recent version of GF.
📷 Debugging Info
Please add screenshots of
📷 Screenshots
Are there any other useful screenshots? WinKey+Shift+S and then just paste them directly into the form