Skip to main content

regular expression 

A text string pattern matching mechanism. Usually applied to individual lines of text, such as from a simple text file, where the regular expression (sometimes abbreviated as RE) pattern can be used to precisely specify which lines ought to match and which shouldn't. The more complicated REs may look very confusing to people who don't know them, as they look more like a random string of letters and other characters without any obvious meaning.

Commonly they're enclosed between slashes (/like this/), because that's how they were used in many ancient Unix tools. They can also be used for text substitution, for example with the s/ construct. A common operator specifying that a RE will follow is the tilde (~).

The Perl language makes heavy use of regular expressions, and the grep tool also searches by REs. SED and AWK are some older tools also using REs.

REs come in two forms: Basic REs and Extended REs, varying slightly in syntax and possible contructs. Perl extens the Extended REs even further and has defined the standard "Perl Compatible REs" (PCRE).
"some example string" =~ /^s*.*e+.*(?:x.* )?.*?g$/
result: 1 (because the regular expression between the // matches the string)
regular expression by DJMoses May 27, 2009
Urban Dictionary Merch
Your favorite words on things you can wear, drink from, read, or give to a friend.
The Urban Dictionary Store sells gifts you’ll have to explain.

Regular expression 

An expression which is just regular, not special, emotionless, but true.
/(Regular) (expression)/ is a /$1 $2/.
See regular expression for a proper use.

Today, the sun is shining, it is a sunny day today!

Butterfly is an insect.

True is not false.

Beautiful flowers have short lives.
Regular expression by pieceocake December 4, 2012
More from Urban Dictionary

piddlefart

verb. To waste time doing nothing.
Instead of doing my homework, I decided to piddlefart around for two hours.
piddlefart by Rene April 25, 2005
Word of the Day on October 9, 2026
anyone who succeeds in disgracing/over indulging themselves in the throws of clubland
28 hours and 4 clubs later, gurning for england but still refusing to go home - a total wrongun!!
wrongun by bevvers March 21, 2007
Word of the Day on October 8, 2026

square grouper

Nickname given to bales of marijuana thrown overboard or out of airplanes. Origin is reportedly from members of the US Coast Guard in the area of Southern Florida.
"Base we've got some square groupers floating outside of Miami harbor."
square grouper by slipsheet November 6, 2004
Word of the Day on October 7, 2026
A girl who does ballet and only talks about ballet. Her schedule is filled with dance classes which does not allow her to do any other activity.
"Hey, do you know that girl Sally?"

"Yeah, she's kind of annoying. All she ever talks about it ballet."

"Wow, what a Bunhead."

"Hey Sally, you want to hang out this weekend?"
"I can't, I have dance."
"You're such a Bunhead."

"Yeah... I know."
Bunhead by Jen00 October 24, 2014
Word of the Day on October 6, 2026

trucker's tan 

A sunburn or suntan focused on the left arm. It is caused by the left side of the body being the only half that gets exposed to sunlight while driving. Presumably, it would be located on the right side of the body in countries where they drive on the left side of the road.
I had a trucker's tan after driving for 10 straight hours on a sunny day.
Word of the Day on October 5, 2026
Load more