Topic: Regular expressions in C++
Author: clamage@Eng.Sun.COM (Steve Clamage)
Date: 1995/04/04 Raw View
In article oe5@newsbf02.news.aol.com, ruthifren@aol.com (Ruthifren) writes:
>
> Has anyone proposed a regular expression library as part of the c++
>standard?
No such proposal was ever presented.
> It
>seems to be a perfect candidate for admission into the standard because
>the front end (UNIX style reg-exps) is already a standard.
Well, there are various places in Unix that use regular expressions, and
the syntax and semantics in the different places, and in different
implementations of Unix, are different in detail. Perhaps Posix has
regularlized regular expressions.
---
Steve Clamage, stephen.clamage@eng.sun.com
Author: ruthifren@aol.com (Ruthifren)
Date: 1995/04/04 Raw View
Has anyone proposed a regular expression library as part of the c++
standard? It might be a large undertaking, but it sure would be nice.
One could define reg-exp "filters" for streamable input: cin <<
filter_out("[^0-9.]") << number << kill_filter; cin.ignore(reg_exp) and
all kinds of zany things. Damn what a wonderful world it would be! It
seems to be a perfect candidate for admission into the standard because
the front end (UNIX style reg-exps) is already a standard. Am I making
sense? (Too much coffee)
___________________________________________________________
Jon Gamble: lowly CS student UAH
Author: ruthifren@aol.com (Ruthifren)
Date: 1995/04/06 Raw View
> Well, there are various places in Unix that use regular expressions,
> and the syntax and semantics in the different places, and in different
> implementations of Unix, are different in detail. Perhaps Posix has
> egularlized regular expressions.
>
> ---
> Steve Clamage, stephen.clamage@eng.sun.com
Sorry. I lost my UNIX virginity a mere 3 months ago. My limited
experience led me to the wrongful conclusion that there was a standard
among UNIX systems on regular expressions. Also, I think it is a naive
question that I asked. Upon reflection, a regular expression class might
not belong in the language standard.. But a man can dream!
___________________________________________________________
Jon Gamble: lowly CS student UAH