On Wed, 21 Dec 2016 19:02:29 +0100,
Robert Klemme <
[email protected]> wrote:
You should really get familiar with regular expressions. One book I
usually recommend is "Mastering Regular Expressions" (O'Reilly).
You are probably right. The difficulties that I have with String.scan
(and functions documented in a similar way) are certainly induced by my
using Regexps scarcely and only those, that I already master for some
time.
In which way do you consider the O'Reilly book superior to other
publications or, to simplify, the man-pages to egrep, regex (7) or the
RDoc to Regexp, my principal though rarely consulted sources of
information?
There is also a nice programm called "Regex Coach" which allows to watch
a regex engine match. This is really helpful for learning. Runs under
WINE as well.
http://weitz.de/regex-coach/
I will consider this. Paul Lutus put a “Regular Expression Laboratory”
on his web-site (what did he *not* put on his web-site, actually?). It
is simpler with less options than the “Regex-Coach”:
http://arachnoid.com/regex_lab/index.html
It solves my current problem, though.
But note the form above does _not_ do word splitting. For that you need
the other one.
Yes. Word-splitting was not in the original “requirement”; I only want
to ensure that a text fits into a laterally limited space... like, let's
say, for a text-mode spreadsheet program, if line-breaks are activated
for a cell. Of all choices.
Cheerio.
Nice holidays all, happy new year, too, within the limits of the
televised joy.
Same to you!
Kind regards
robert
--
GnuPG brainpoolP512r1/5C2A258D 2015-10-02 [expires: 2017-10-01]
sub brainpoolP512r1/53461AFA 2015-10-02 [expires: 2017-10-01]
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)