TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: MARTIN GREGORIE
date: 2020-03-19 23:15:00
subject: Re: Regexes and C

On Thu, 19 Mar 2020 19:50:54 +0000, Dan Cross wrote:

Thanks for your example code - clarified a couple of  parameter
definitions that where rather unclear in the manpage and I therefore
didn't understand. regerror() now works and so do the  ^ and $ endpoint
anchors.

My code was somewhat larger than an SSCCE due to other stuff I wanted it
to do, which is why you didn't see it.

SSCCEs don't seem to be much known outside Java circles, so here's a
reference: its actually a very good idea that can be used with almost any
computer language:

http://sscce.org/

> I think the latest version of "Programming in the Unix Environment"
> is quite good.  It has been kept up to date since the unfortunately
> premature death of W Richard Stevens.  I don't recall whether it covers
> regular expressions, though.
>
Sounds useful. Note made to look at it.

> It's been many years since I have used a book for that kind of thing,
> so I'm afraid my recommendations for specific texts are dated.  :-(
>
Call me old-fashioned, but I find a good book a lot more usable for
reference than any reasonable sized screen or e-book I've seen so far.
I'm likely to hold that view until the standard E-book becomes rather
more booklike, i.e. with two double-sided pages used for, from front to
back:

Contents, two facing pages for the main content, and an index page.

This would let a reader find stuff fast because content and index pages
wouldn't have to be scrolled to all the time. If the whole thing is thin
and uses e-ink displays, so much the better.


--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.