Remember me
You are here: HomeForumCyberix3D ForumCommunity's Video / Live TutorialsCyberix 3D Tutorials #2 (By RobumVirenStudios)
Welcome, Guest
Username: Password: Remember me

TOPIC: strings, search for specific value

strings, search for specific value 2 years 8 months ago #2745

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
I have a problem, is that when I use the string string.match and I search for a specific word, example "the" identifies the word for me so it is accompanied by another for example "they", what other string can I use so that only Look for "the" separately and that it does not identify me if it is accompanied by another like the one named above
Last Edit: 2 years 8 months ago by GODEBEX.
The administrator has disabled public write access.

strings, search for specific value 2 years 8 months ago #2746

  • ViraX
  • ViraX's Avatar
  • NOW ONLINE
  • Expert Boarder
  • Posts: 148
  • Thank you received: 110
there is surely a simpler solution, but while waiting for the first idea which comes to me and to give the size of the occurrence to seek with an array (or other) ...

char[2] = "the"
char[3] = "they"
Last Edit: 2 years 8 months ago by ViraX.
The administrator has disabled public write access.

strings, search for specific value 2 years 8 months ago #2747

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
Try here, as you can see in this example if you put "they" in the text the variable "a" that should search only for "the" detects it with everything combined and it is not the idea, I hope you can help me

source: www.gamemaker3d.com/player?pid=054616159691
The administrator has disabled public write access.

strings, search for specific value 2 years 8 months ago #2748

  • ViraX
  • ViraX's Avatar
  • NOW ONLINE
  • Expert Boarder
  • Posts: 148
  • Thank you received: 110
Ah ok, I see ... as soon as I have a moment I try to find a solution if no one gives you a solution before ;)
Last Edit: 2 years 8 months ago by ViraX.
The administrator has disabled public write access.
Time to create page: 0.076 seconds