Re: use-livecode Digest, Vol 222, Issue 8

2022-03-11 Thread J. Landman Gay via use-livecode
Ditto Boggle, the longer the word the more points you get. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 11, 2022 8:03:20 AM Craig Newman via use-livecode wrote: I play Scrabble, not Boggle. Regardless of which dictionary

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-11 Thread Craig Newman via use-livecode
I play Scrabble, not Boggle. Regardless of which dictionary people use, there are many more words of 8 - 10 characters than of 4 - 6 characters. Craig > On Mar 10, 2022, at 5:25 PM, doc hawk via use-livecode > wrote: > > > jacqui jawed, > > >> filter tHugeDict without regex pattern

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-10 Thread doc hawk via use-livecode
jacqui jawed, > filter tHugeDict without regex pattern "[qkxyz]” I expect that would be faster. But it will also bring words that are too long, although I have no idea whether or not there would be enough to matter. ___ use-livecode mailing list

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-10 Thread J. Landman Gay via use-livecode
On 3/9/22 3:42 PM, doc hawk via use-livecode wrote: Something like ^[manl]\{2,5\}$ which matches all strings of length 2 to 5 composed exclusively of the letters m, a, n, & l ? I want to eliminate all words contains any of the letters in the group. I didn't get confirmation that my regex

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-09 Thread doc hawk via use-livecode
jacqui juggled, > > Funny you should bring this up, as I was playing with it last night. Turns > out that multiple filters do slow down on the Pixel so I was looking for the > One True Regex. Something like ^[manl]\{2,5\}$ which matches all strings of length 2 to 5 composed exclusively

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread J. Landman Gay via use-livecode
Funny you should bring this up, as I was playing with it last night. Turns out that multiple filters do slow down on the Pixel so I was looking for the One True Regex. I'm not great at this so would like verification from those who know if this is what I need: put "[" & tUnusedLetters & "]"

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread Andy Marshman via use-livecode
Hi Mark, In regex the full stop stands for any single character whereby the * means any other characters. If you want to only find things that begin with a character put a ^ infront of the character you are searching for. So ^a. should only return apple in your example. Regards Andy On Mon, 7

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread Mark Smith via use-livecode
So, playing around a bit more I discovered “a.*” does not return words that “start with”, but rather words that “contain” the letter. So that explains “apple, banana”. What isn’t clear to me is I get the exact same result using “a.” with no asterisk, but if I search for “y.” it returns nothing

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread Mark Smith via use-livecode
I am not an expert in regex or filtering by any means so Quentin’s message prompted me to take a closer look. I started with the dictionary entry for filter and I found this simple example: filter items of "apple,banana,cherry" with regex pattern "b.*" Since we are not specifying a destination,

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread Quentin Long via use-livecode
sez j. landman gay: > Interesting idea. There are 25 letters on each board, some are always > repeats. I think I'd need  > a good regex so I wouldn't have to run the filter command multiple times. > How's your regex? I see you've already implemented something, but just for grins, here's my