Thanks for stopping by.
I am stuck in a problem that I'm unable to solve. The problem is like as follows
a = "The Macports"
b = "macport"
c = "The Initial Macports"
d = "The Oscar Macports Initial Time"
e = "macports"
f = "The fastest macport"
All the above are strings where the common word is macport. Just like these 6 strings I am operating on a data of almost 1000 variation like this.
I am trying out to find the strings which contains the name macport or macports.
Glad if you could give me suggestions or discuss about it, how to fix it
/macport$|macport /g.test(string)
This will check for words having macport and a space appeneded or a string that ends with macport
for macports you can do the same thing by replacing macport with macports
I am on mobile so didn't check it much just check if it is working and I may have missed some cases