Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hehe, strange isn't it? Perhaps I have some explaining to do...

The original plan was to show an animated GIF of a regex matching as an instructional aid, but I decided to do something more abstract (and less practical) because... ... umm... Yeah.

You'll notice there are hidden messages such as:
- regex Pr\n. (noun) - regex pr0n? How lewd!
- pm, pl (as in Perl)
- ... (fill in the rest, hint: what OS do you (have to) love?)
So just incase you thought you were being brainwashed, you are. Thank the political adverts for this idea. :) heh-heh-heh, "Excellennnttt... it's only a matter of time now." <evil laughter>

This regex should parse/match most variants of the word 'regex' including:
- regex - \n.\ (root word), defined here.
- regexes, regexen - \n. pl.\ "I have two very readable regexen."; "Perlmonks saint: I thought regexes where suppose to be hard!"
- regexens - \n. pl.\ slang, regexen variant.
- regex - \v. present tense\
- regexes - \v. present participle third person\ - "He who regexes..."
- regexer - \n.\ One who regexes.
- regexers - \n. pl.\ - "Perl users become avid regexers as they find how it really improves the readability of their code."
- regexed - \v. past tense\ - "I have regexed for the good of the country."
Special cases:
- regexing ($3) - \v. pp.\ - "Regexing for the benefit of newbies."
- regexp ($1) - \n.\ Evil black sheep form, that _LOTS of people STILL use_ damnit. (Peer pressure persuades us from using this form.)

In reply to Re: Regex Fridge Code by darksym
in thread Regex Fridge Code by darksym

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2021-12-05 01:04 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (30 votes). Check out past polls.