{"action":"closed","issue":{"url":"https://api.github.com/repos/weechat/weechat/issues/386","labels_url":"https://api.github.com/repos/weechat/weechat/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/weechat/weechat/issues/386/comments","events_url":"https://api.github.com/repos/weechat/weechat/issues/386/events","html_url":"https://github.com/weechat/weechat/issues/386","id":67280102,"number":386,"title":"How to make highlight case sensitive?","user":{"login":"OnkelTem","id":114060,"avatar_url":"https://avatars.githubusercontent.com/u/114060?v=3","gravatar_id":"","url":"https://api.github.com/users/OnkelTem","html_url":"https://github.com/OnkelTem","followers_url":"https://api.github.com/users/OnkelTem/followers","following_url":"https://api.github.com/users/OnkelTem/following{/other_user}","gists_url":"https://api.github.com/users/OnkelTem/gists{/gist_id}","starred_url":"https://api.github.com/users/OnkelTem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OnkelTem/subscriptions","organizations_url":"https://api.github.com/users/OnkelTem/orgs","repos_url":"https://api.github.com/users/OnkelTem/repos","events_url":"https://api.github.com/users/OnkelTem/events{/privacy}","received_events_url":"https://api.github.com/users/OnkelTem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T04:44:46Z","updated_at":"2015-04-09T04:45:27Z","closed_at":"2015-04-09T04:45:27Z","body":"I couldn't find documentation on RegEx weechat implementation details. Specifically, was looking for a way to make ```weechat.look.highlight_regex``` case sensitive.\r\nI'm creating this issue to allow Google for indexing and let people find this info faster.\r\n\r\nThe answer turned to be \"already there\" which means it is literally contains in the built-in help:\r\n```\r\n/help weechat.look.highlight_regex\r\n```\r\nprints this nice how-to:\r\n```\r\nOption \"weechat.look.highlight_regex\":                                                                                                                         \r\ndescription: POSIX extended regular expression used to check if a message \r\nhas highlight or not, at least one match in string must be surrounded by delimiters \r\n(chars different from: alphanumeric, \"-\", \"_\" and \"|\"), regular expression is case \r\ninsensitive (use \"(?-i)\" at beginning to make it case sensitive), examples: \r\n\"flashcode|flashy\", \"(?-i)FlashCode|flashy\"\r\n```\r\nThus to make your regex case sensitive, just add (?-i) to the beginning. \r\nMy example:\r\n```\r\n/set weechat.look.highlight_regex \"(?-i)\\b(Onkel Tem|Onkel|Tem)\"\r\n```\r\n"}}