Hi all, I am currently trying to match a dataset, so I was using regexm, e.g:
regexm("12345", "([0-9]){5}") = 1
regexm("Hong Kai Cheng", "Chen") = 1
regexm("Hong Kai Cheng", "She") = 0
regexm("Hong Kai Cheng", "Cheng") = 1
but what if I only want to match the entire word, e.g. I do not wish to to match "Chen" in "Hong Kai Cheng", only matching "Cheng" in "Hong Kai Cheng".
what code can I use?
regexm("12345", "([0-9]){5}") = 1
regexm("Hong Kai Cheng", "Chen") = 1
regexm("Hong Kai Cheng", "She") = 0
regexm("Hong Kai Cheng", "Cheng") = 1
but what if I only want to match the entire word, e.g. I do not wish to to match "Chen" in "Hong Kai Cheng", only matching "Cheng" in "Hong Kai Cheng".
what code can I use?
Comment