Page 1 of 1
wrong behaviour searching word in source text
Posted: Tue Dec 05, 2023 5:50 pm
by Psychophanta
When doing a "find/replace" a text in the source, if the 'whole words only' is marked, it doesn't work, for example when the word is followed with a * symbol.
Just try and watch it.
Re: wrong behaviour searching word in source text
Posted: Tue Dec 05, 2023 10:00 pm
by BarryG
Works here with words ending with *.
Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 7:39 am
by STARGÅTE
Have you add the
* in extra character list?
Because then the
* is a word-character as well and
abc* or
*abc is a whole word and
abc is not matched.

Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 8:17 am
by BarryG
Interesting, because I don't have * added in the "Extra characters" box, yet it still works for me. I even tried with a clean install (no existing prefs file) and it works.
Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 8:37 am
by STARGÅTE
BarryG wrote: Wed Dec 06, 2023 8:17 am
Interesting, because I don't have * added in the "Extra characters" box, yet it still works for me. I even tried with a clean install (no existing prefs file) and it works.
Yes, of cause. If you
add the * to the extra word characters, * become a word-character. Therefore the selection as well as the search/replace algorithm interpret e.g. a*b as a whole word. So, from my point of view this is a feature and not a bug.
Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 9:08 am
by BarryG
STARGÅTE wrote: Wed Dec 06, 2023 8:37 amIf you
add the * to the extra word characters, * become a word-character.
But I'm saying I
don't have * added as an extra word character, yet it still gets selected with a word anyway.
Why do my experiences with PureBasic seem so different to everyone else lately? I feel like I'm in the Twilight Zone.

Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 11:04 am
by AZJIO
BarryG wrote: Wed Dec 06, 2023 9:08 am
I feel like I'm in the Twilight Zone
Perhaps you downloaded the updated IDE in the "
Editor slow" topic.
I have the same as you and I also downloaded.
Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 12:04 pm
by BarryG
Ohhh, yeah. That's probably it. Thanks for reminding me. <Thumbs up>. Good to know I'm not going insane!
Re: wrong behaviour searching word in source text
Posted: Wed Dec 06, 2023 4:26 pm
by Psychophanta
@STARGÅTE , when delete all the characters, and apply -> accept, then the characters appear again.