0

I'm completely new about MySQL regexp and, after 3 days searching the web I've got to give up!

I need to find words into a database, exact words. But I need to take care about punctuation too (would be nice I provide my list of punctuation symbols). These words might be at the beginning of the database record, at the end or in the middle. They also can the the only data into the record. I don't care about uppercase or lowercase words.

Thus, I need to retrieve words in such cases:

Lion - Lion. - Lion, - Lion; - Lion... (dots) - Lion… (hellip) etc. (there can be many other punctuation symbols)

or

'Lion' - "Lion" - (Lion) - <Lion> - /Lion/ etc.

but those are incorrect:

Lion.tiger - Lions - superlion - <Lion" - (Lion> - Lion.....

I've tried dozens of regexp provided on several websites but none could solve that accurately.

Cheers.

4

1 に答える 1