«« ( Date ) »» // «« ( Thread ) »» // ri4pp - 2005

Re: komentari za dz

by Marko Stanković
četvrtak, 24. novembar 2005 - 02:31.

evo sta kaze linux kad mu kazes:
man 7 regex
[uzeo sam samo relevantne delove teksta]

`^' matching the null string at the beginning of a line

An atom followed by `*' matches a sequence of 0 or more matches of the atom

A bracket expression is a list of characters enclosed in `[]'. It normally matches any single character from the list (but see below). If the list begins with `^', it matches any single character (but see below) not from the rest of the list. If two characters in the list are separated by `-', this is shorthand for the full range of characters between those two (inclusive) in the collating sequence, e.g. `[0-9]' in ASCII matches any decimal digit. It is illegal(!) for two ranges to share an endpoint, e.g. `a-c-e'. Ranges are very collating-sequence-dependent, and portable programs should avoid relying on them.

Pa ti sklopi odgovor.
P0Z!

On Thu, 24 Nov 2005 01:16:23 +0100, Sasa <gavra20@tesla.rcub.bg.ac.yu> wrote:

Ja sam pregledajuci JFlex primere naleteo na nesto slicno:
"/*" [^*] ~"*/"
U cemu se razlikuje od ovog dole?
Cemu sluzi ovo [^*] ?
Hvala!


--
## Marko Stankovic ## Registered Linux User #361318 [counter.li.org]
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

Defenestration n. (formal or joc.):
The act of removing Windows from your computer in disgust, usually followed
by the installation of Linux or some other Unix-like operating system.