Re: Regular expressions are:
by fraktalisman (Hermit) on Mar 01, 2009 at 16:19 UTC
|
A second language inside of Perl that is worth while learning.
| [reply] |
|
or third or fourth or fifth, etc., depending on when you learn formats, un/pack formats, file open modes, or any of Perl's other mini-languages.
| [reply] |
Re: Regular expressions are:
by kennethk (Abbot) on Mar 01, 2009 at 16:02 UTC
|
| [reply] |
Re: Regular expressions are:
by Anonymous Monk on Mar 01, 2009 at 17:55 UTC
|
But we can both blame it all on Henry.
-- Larry Wall on perl's regex engine
Larry Wall Quotes
| [reply] |
Re: Regular expressions are:
by wolfger (Deacon) on Mar 02, 2009 at 17:21 UTC
|
What my co-workers need to learn, to make their lives easier and my life more pleasant. But until they finally do, I'll be happy to look like a genius...
| [reply] [d/l] |
Re: Regular expressions are:
by cdarke (Prior) on Mar 02, 2009 at 16:41 UTC
|
...a way of tracking how that damn cat walked across the keyboard. | [reply] |
Re: Regular expressions are:
by jhourcle (Prior) on Mar 03, 2009 at 01:07 UTC
|
Both a blessing and a curse --
I'm used to using regex in Perl, or other apps using PCRE, but I have to do work in IDL ... and they have what they claim to be regex support, but it lacks:
- Non-greedy quantifiers
- lookahead / lookbehind assertions
- all of the zero-width assertions other than $ and ^
- \w, \d, \s, etc.
- non-capturing parenthesis
So ... anyway, not all regex are created equal -- Perl regex good ... IDL regex is a steaming pile.
| [reply] |
Re: Regular expressions are:
by pileofrogs (Priest) on Mar 04, 2009 at 17:10 UTC
|
Please show one example of each:
- Irregular Expressions
- Rational & Irrational Expressions
- Immaginary Expressions
- Anti Expressions
- Euclidean & Non-Euclidean Expressions
- Newtonian, Relativistic & Quantum Expressions
- Theological Expressions (include specific theologies)
- Philosophical Expressions (include specific philosophies)
Okay, I'm stopping myself by force of will...
| [reply] |
|
Irregular Expressions
See just about any post about REs in SOPW
Rational & Irrational Expressions
"Well, it seemed like a good idea at the time..."
Immaginary Expressions
Anything in a thought-bubble in a comic strip
Anti Expressions
"I know you are, but what am I?"
Euclidean & Non-Euclidean Expressions
if (m|euclid| && m)euclid))
Newtonian, Relativistic & Quantum Expressions
"How much an apple hurts when it hits your head depends on who's head it hits, but it may or may not have hit your head at all if you were not there to see it..."
Theological Expressions (include specific theologies)
10 - commandments
9 - Heimr
8 - fold path
7 - terraces of purgatory
6 - Venus; harmony
5 - pillars of Islam
4 - Vedas
3 - Persons in one Godhead
2 - Testaments
1 - Ring to rule them all...
Philosophical Expressions (include specific philosophies)
"To be is to do"--Socrates.
"To do is to be"--Jean-Paul Sartre.
"Do be do be do"--Frank Sinatra.
-- Kurt Vonnegut | [reply] [d/l] |
|
| [reply] |
|
10: Indecent proposal
Now THAT would be a useful tool!
| [reply] |
Re: Regular expressions are:
by Intranaut (Initiate) on Mar 02, 2009 at 14:49 UTC
|
the cause of ir-regular expressions of joy | [reply] |
Re: Regular expressions are:
by Anonymous Monk on Mar 01, 2009 at 14:06 UTC
|
| [reply] |
|
Yeah, verily! Thou doest speaketh the truth as I live it! I doth love them; but, verily I say, every time attempth I to use them, I doth get dispeptic bowels. My brain is left feeling empty and without form; a void in nature!
| [reply] |
|
Thy post, translated into Perl, appeareth thus:
@foo[1] = s/bar/baz/;
Though it seem hard to the lewd, the proper conjugation of most regular verbs followeth certain simple rules, whereby archaic English can be writ without offending the eyes of the learned.
Write then not "thou dost speaketh", but only "thou dost speak" or "thou speakest". -eth is used only with the third person: "he doth speak", "she speaketh". The first person hath no special ending: "I do speak", "I speak".
As for regular expressions, they are both a blessing and a curse: they bless, for in them is power and expressivity, and the judicious and skilled use thereof maketh a program to be more pleasant and efficient in both the reading and the running; and yet they curse, for many who would write them lack both skill and judgement, and the result is oft great pain for any who would maintain such code.
If, as many monks have voted, regexen prove that God exists, then also they must prove that He hath a most wicked sense of humour ...
| [reply] [d/l] |
|
|
| [reply] |
Re: Regular expressions are:
by DrHyde (Prior) on Mar 02, 2009 at 11:03 UTC
|
Surely they're a sign that God *doesn't* exist. After all, why would an omni-benevolent omniscient omnipotent being let something so hideous exist? A true god would have Inspired a far better scripture. | [reply] |
|
A true god would have Inspired a far better scripture.
But He did!
| [reply] |
|
A test of faith?
The best deception the Devil ever had was making you think you need a regex
| [reply] |
Re: Regular expressions are:
by Anonymous Monk on Mar 02, 2009 at 14:06 UTC
|
A cartoon character swearing | [reply] |
Re: Regular expressions are:
by Anonymous Monk on Mar 03, 2009 at 03:23 UTC
|
I voted for "What makes Perl so strong". However it should really be "What made Perl so strong".
As most of the modern languages support regexp now, that is no longer something that distinguishes perl from the rest.
| [reply] |
Re: Regular expressions are:
by nimdokk (Vicar) on Mar 03, 2009 at 21:21 UTC
|
It doesn't quite scan right but:
regex, regex, regex,
makes the world go 'round,
the world go 'round,
the world go 'round
sung to the tune of "The Money Song" from Cabaret | [reply] [d/l] |
Re: Regular expressions are:
by Xilman (Hermit) on Mar 04, 2009 at 11:09 UTC
|
the consequence of a high-fib(er|re) diet. | [reply] |
Re: Regular expressions are:
by Illuminatus (Curate) on Mar 03, 2009 at 17:42 UTC
|
A nefarious conspiracy between Larry Wall (if that's even his real name) and Roland Kaufmann to aggressively promote the programmer dvorak keyboard. I find this particularly odious, as I named my oldest daughter Qwerty...
fnord | [reply] |
Re: Regular expressions are:
by DrWhy (Chaplain) on Mar 10, 2009 at 23:22 UTC
|
Regular expressions are a powerful tool. Like all powerful tools they are exremely dangerous in the hands of the untrained or inattentive, but magic in the hands of the expert.
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
| [reply] |
|
"Dangerous to us all are the devices of an art deeper than we ourselves posses" -- Gandalf the Grey
| [reply] |
|
Well said.
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
| [reply] |
Re: Regular expressions are:
by Illuminatus (Curate) on Mar 03, 2009 at 22:04 UTC
|
| [reply] |
Re: Regular expressions are:
by PerlZealot (Acolyte) on Mar 07, 2009 at 05:28 UTC
|
Their fruits bringeth great joy; yay, many blessings to the man who hath mastery over them... Yet, yay verily, they art also fickle and a source of great wailing and gnashing of teeth...
Kinda like a woman... | [reply] |
Re: Regular expressions are:
by punch_card_don (Curate) on Mar 02, 2009 at 19:30 UTC
|
Regular expressions are:
WTF? Holy crap!
I don't dare publish my more irregular expressions.
Time flies like an arrow. Fruit flies like a banana.
| [reply] |
Re: Regular expressions are:
by Sisyphus (Chaplain) on Mar 14, 2009 at 12:17 UTC
|
If God had meant for us to master regular expressiones for ourselves he would have given us perl. Oh, wait... | [reply] |