Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

regular expressions

by SubStack (Monk)
on Feb 26, 2007 at 03:26 UTC ( #602072=poem: print w/replies, xml ) Need Help??

#!/usr/bin/env perl $_=<<_; Strings of strings and other such things Compiled, refiled, refined Incantations untold, the squiggles unfold Decoded, reloaded, unkind Look ahead, look behind, grab what we can A match, a word, a line Dynamic expression, embedded return A sigil, a slash, a sign Deadline approaches, write it out quick Lazy impatience employs Indistinguishable from magic, true Elegant prose or just noise? _ print/^(?:\S+\s){8}(..).{284}(..).{5}(.).{8}(.)(?: \S+\s){4}.(..)(?<=(.{10}).{160})..(.).{8}(.)/sgx

Replies are listed 'Best First'.
Re: regular expressions
by Zaxo (Archbishop) on Feb 26, 2007 at 04:10 UTC

    I like it. Unix monks should be sure to have crlf for newlines.

    After Compline,
    Zaxo

Re: regular expressions
by Anonymous Monk on Feb 28, 2007 at 00:40 UTC
    Beautiful. Inspirational. Leagues ahead of my talents ...
    - Laz.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: poem [id://602072]
Approved by Moriarty
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2023-01-29 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?