|
From: | Jean Louis |
Subject: | Re: [External] : Use the characters "+" and "-" in regular expressions |
Date: | Thu, 20 May 2021 15:53:45 +0300 |
User-agent: | Mutt/2.0.6 (2021-03-06) |
* Christopher Dimech <dimech@gmx.com> [2021-05-20 14:32]: > This could be what you need > > (string-match "[\s]+ " s) > > Matches any white-space character. Why space after plus? >From manual: "Whitespace characters such as space, tab, newline and formfeed..." So this does not match new line: (string-match "[\s]+" " ") ⇒ nil Neither TAB or FORM FEED: (string-match "[\s]+" " ") ⇒ nil (string-match "[\s]+" "") ⇒ nil -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ https://rms-support-letter.github.io/
[Prev in Thread] | Current Thread | [Next in Thread] |