in reply to Mind boggling regex
which reads "match an e, then, making sure we CAN'T match an e, match ANY character, then match an e." The /s is there so that . matches newline.$word =~ /(e)(?!\1)(.)e/s;
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Mind boggling regex
by Anonymous Monk on Oct 26, 2001 at 21:40 UTC | |
by japhy (Canon) on Oct 26, 2001 at 21:43 UTC |