Octave string indexing
godarda@gd:~$ octave
...
octave> gd = "GoDarda"
gd = GoDarda

octave> startsWith(gd, "KODING")
ans = 0

octave> startsWith(gd, "Koding")
ans = 1

octave> endsWith(gd, "ing")
ans = 0

octave> endsWith(gd, "dow")
ans = 1

octave> index(gd, "in")
ans = 4

octave> rindex(gd, "in")
ans = 8

octave> unicode_idx(gd)
ans =

    1    2    3    4    5    6    7    8    9   10   11   12

octave> strfind(gd, "WINDOW")
ans = [](0x0)

octave> strfind(gd, "window")
ans = 7
Comments and Reactions