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.
wrong behaviour searching word in source text
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: wrong behaviour searching word in source text
Works here with words ending with *.
Re: wrong behaviour searching word in source text
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.

Because then the * is a word-character as well and abc* or *abc is a whole word and abc is not matched.

PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: wrong behaviour searching word in source text
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
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.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.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: wrong behaviour searching word in source text
But I'm saying I don't have * added as an extra word character, yet it still gets selected with a word anyway.STARGÅTE wrote: Wed Dec 06, 2023 8:37 amIf you add the * to the extra word characters, * become a word-character.
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
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
Ohhh, yeah. That's probably it. Thanks for reminding me. <Thumbs up>. Good to know I'm not going insane!
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Re: wrong behaviour searching word in source text
@STARGÅTE , when delete all the characters, and apply -> accept, then the characters appear again.