|
From: | Jean Louis |
Subject: | Re: [External] : Use the characters "+" and "-" in regular expressions |
Date: | Thu, 20 May 2021 17:14:44 +0300 |
User-agent: | Mutt/2.0.6 (2021-03-06) |
* steve-humphreys@gmx.com <steve-humphreys@gmx.com> [2021-05-20 16:56]: > > [:blank:] is series of characters for that: > > > > (string-match "[[:blank:]]" " ") ⇒ 0 > > Have done the following (string-match "^[:blank:]$" " ") > > Because (string-match "[:blank:]" s) was matching sentences with > space between words as well. Are you sure? As in that case the meaning of ^ is that it matches begin of line, while in [^[:blank:]] it match anything but non-blank and meaning of ^ is "not match" in that case. -- 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] |