You can easily check if a word starts with another using index "backwards":
index("hello", $word) == 0
I don't know if it would be simpler to use this approach or not.
In reply to Re: Regex - Matching prefixes of a word
by ikegami
in thread Regex - Matching prefixes of a word
by SuicideJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |