I want to find all occurances of
Code: Select all
.{space{1+}
Code: Select all
,\s+
(I'd normally post a (cropped)screen grab of the error message at this point; but this forum appparently doesn't support inlining images (despite the [ img][/img ] tags produced by the 'insert image] button above); and life is too short to try and work out what stupid magic is required to do so!).
Please do not suggest I switch to using the (antiquateted; DOA; rediculously verbous and utterly crude) POSIX regex formatting. Once again; life is too short for that...
In every other "Perl-compatible" regex engine (a brief exploration shows that I have 11 at least I use regularly [sic]), \s+ matches 1 or more [space|tab|form feed|line feed|+unicode bollo..s]... Eg.
- Javascript: \s Matches a single white space character, including space, tab, form feed, line feed, and other Unicode spaces. Equivalent to [ \f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]. For example, /\s\w*/ matches " bar" in "foo bar".
- MS .NET \s Matches any white-space character. \w\s "D " in "ID A1.3"
- rexegg.com summation: \s Most engines: "whitespace character": space, tab, newline, carriage return, vertical tab a\sb\sc a b
c - Java: The regular expression \s is a predefined character class. It indicates a single whitespace character. Let's review the set of whitespace characters: [ \t\n\x0B\f\r]
- Google Workspaces: \s Matches any whitespace character. For example, use this character to specify a space between words in a phrase: stock\stips matches the phrase stock tips
- Python: \s For Unicode (str) patterns:
Matches Unicode whitespace characters (which includes [ \t\n\r\f\v]...). If the ASCII flag is used, only [ \t\n\r\f\v] is matched.
For 8-bit (bytes) patterns: Matches characters considered whitespace in the ASCII character set; this is equivalent to [ \t\n\r\f\v]. - (bored now.. look 'em up yourselves!)
Why doesn't this work in TextPad? (Been using TP since v2.something; now using v5.something. Rretired now, can't afford upgrades.)