all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Difference between \\w and [:word:]?
@ 2018-06-07 19:18 Eric Abrahamsen
  2018-06-07 20:24 ` Robert Pluim
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Abrahamsen @ 2018-06-07 19:18 UTC (permalink / raw)
  To: help-gnu-emacs

Can someone explain to me what's happening here? What's the difference
between \\w and [:word:], inside and outside of a bracket construction?

(setq case-fold-search nil)
(string-match-p "[:word:]" "P") => nil
(string-match-p "[[:word:]]" "P") => 0
(string-match-p "\\w" "P") => 0
(string-match-p "[\\w]" "P") = nil




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-10  2:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1434.1528399150.1292.help-gnu-emacs@gnu.org>
2018-06-07 23:00 ` Difference between \\w and [:word:]? Ben Bacarisse
2018-06-08  2:29   ` Eric Abrahamsen
2018-06-08  9:16     ` Robert Pluim
2018-06-08  9:24       ` Yuri Khan
2018-06-08 15:05         ` Eric Abrahamsen
2018-06-09 23:36           ` Stefan Monnier
2018-06-10  2:05             ` Eric Abrahamsen
2018-06-07 19:18 Eric Abrahamsen
2018-06-07 20:24 ` Robert Pluim
2018-06-07 21:35   ` Eric Abrahamsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.