Zazar Homepage
Forum Home Forum Home > Zazar > Developers
  New Posts New Posts RSS Feed - zGlossary: detecting only whole words
  FAQ FAQ  Forum Search   Register Register  Login Login

zGlossary: detecting only whole words

 Post Reply Post Reply
Author
Message
coquin View Drop Down
Newbie
Newbie
Avatar

Joined: 08 Dec 2014
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote coquin Quote  Post ReplyReply Direct Link To This Post Topic: zGlossary: detecting only whole words
    Posted: 08 Dec 2014 at 13:40
Very precious plugin, thank you!
Only one question:
how can I fit the code so that only whole words are matched?
Now, e.g., if I add the term "ISP" (Internet Service Provider) also the word "dispose" is highlighted.
Thank you so much
ruggero
Back to Top
David View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 Oct 2009
Points: 224
Post Options Post Options   Thanks (0) Thanks(0)   Quote David Quote  Post ReplyReply Direct Link To This Post Posted: 08 Dec 2014 at 14:08
Hi

For your example, set the option 'ignorecase' to true.
David Woolston
Zazar Support
Back to Top
coquin View Drop Down
Newbie
Newbie
Avatar

Joined: 08 Dec 2014
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote coquin Quote  Post ReplyReply Direct Link To This Post Posted: 08 Dec 2014 at 14:19
Thank you for reply, but it doesn't work.
I think some regex are needed, I tried some solutions, but without success.
ruggero
Back to Top
David View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 Oct 2009
Points: 224
Post Options Post Options   Thanks (0) Thanks(0)   Quote David Quote  Post ReplyReply Direct Link To This Post Posted: 08 Dec 2014 at 15:50
Hi

Correction, the plugin is case sensitive by default. See http://www.zazar.net/developers/jquery/zglossary/example_casesensitive.html
David Woolston
Zazar Support
Back to Top
coquin View Drop Down
Newbie
Newbie
Avatar

Joined: 08 Dec 2014
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote coquin Quote  Post ReplyReply Direct Link To This Post Posted: 08 Dec 2014 at 16:24
hi David
I'm searching for something a bit more sofisticated, e.g.:
If I add the term "url" (without spaces before or after, no matter if lowercase, uppercase, capitalize etc)
-url, URL, Url will all be found, even wrong uRL, urL etc
-curl wil not be found
I'll keep trying with regex and if successful I'll post, but in the meanwhile if you could have some good idea...
Thank you again
ruggero
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 10.15
Copyright ©2001-2013 Web Wiz Ltd.