Very simple, but I cannot get it to work.
I want to find two words inside a continous string (or one whole word)
example
Find me the two words - "student" and "name" only in whole strings (unseparated with whitespace or other words/chars)
So find it in these...
"studentname"
"studentpreferredname"
"studentgivennames"
"student_name"
"student(^&(&(&(&&^&^&^&^&^%&^%name"
But not in these ...
"student name"
"student [multiple spaces] name"
"student is their name"
"the student's name is"
"A long time ago I wanted this student to have a similar name to"
The only thing I can get to sort of work is regex:
student.*name
But that brings in the cases above with all sorts of characters and words inbetween.
Thank you
UPDATE
See answer below.
This worked perfectly.
\bstudent\S*name\b