Hi,
I'm trying to make a function that find a specif word in a string.
For example:
I need to find WORD
string could be:
- Find this word in this string
or
- Find.this.word.in.this.string
or
-Find-this-word-in-this-string
find 1 text with regex is simple:
I have problem to find word in the other two example.
Also, how can I return in fuction that I found that string?
Thanks
I'm trying to make a function that find a specif word in a string.
For example:
I need to find WORD
string could be:
- Find this word in this string
or
- Find.this.word.in.this.string
or
-Find-this-word-in-this-string
find 1 text with regex is simple:
Code:
\bword\b
I have problem to find word in the other two example.
Also, how can I return in fuction that I found that string?
Thanks