---
title: "That gets us out of deciding how to spell Reg[eE]xp?|RE . . . Of cour… — Larry Wall Quote #145 | QuotesBy.net"
description: "That gets us out of deciding how to spell Reg[eE]xp?|RE . . . Of course, then we have to decide what ref $re returns... :-) — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # That gets us out of deciding how to spell Reg\[eE\]xp?\|RE . . . Of course, then we have to decide what ref $re returns... :-)

[Larry Wall](https://quotesby.net/Larry-Wall)\#145

[Programming](https://quotesby.net/Larry-Wall/programming/)[Design](https://quotesby.net/Larry-Wall/design/)[Syntax](https://quotesby.net/Larry-Wall/syntax/)[Regex](https://quotesby.net/Larry-Wall/regex/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CThat%20gets%20us%20out%20of%20deciding%20how%20to%20spell%20Reg%5BeE%5Dxp%3F%7CRE%20.%20.%20.%20Of%20course%2C%20then%20we%20have%20to%20decide%20what%20ref%20%24re%20returns...%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F145%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CThat%20gets%20us%20out%20of%20deciding%20how%20to%20spell%20Reg%5BeE%5Dxp%3F%7CRE%20.%20.%20.%20Of%20course%2C%20then%20we%20have%20to%20decide%20what%20ref%20%24re%20returns...%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F145%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F145%2F)

## About this quote

What does it mean?Wall notes that deciding how to spell a regex leads to further questions about what a reference returns.In plain termsChoosing a regex syntax triggers more decisions about its behavior.What can you take from it?Be prepared for cascading design choices.

### Where it applies

- programming language design
- parser implementation

### Putting it to work

- document naming conventions
- define return values early

### Questions to consider

- How far should you go in defining language details before settling?

### Another view

It can become an endless loop of decisions.

## More from Larry Wall

1. > That should probably be written: no !@#$%^&amp;\*:@!semicolon

[Permalink to quote \#144](https://quotesby.net/Larry-Wall/144/ "Permalink to quote 144")
2. > 'Course, that doesn't work when 'a' contains parentheses.

[Permalink to quote \#146](https://quotesby.net/Larry-Wall/146/ "Permalink to quote 146")
3. > The Harvard Law states: Under controlled conditions of light, temperature, humidity, and nutrition, the organism will do as it damn well pleases.

[Permalink to quote \#143](https://quotesby.net/Larry-Wall/143/ "Permalink to quote 143")

## Related quotes

1. > And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#2](https://quotesby.net/Larry-Wall/2/ "Permalink to quote 2")
2. > We toast the Lisp programmer who pens his thoughts within nests of parentheses.

[Alan Perlis](https://quotesby.net/Alan-Perlis)[Alan Perlis quote \#2](https://quotesby.net/Alan-Perlis/2/ "Permalink to quote 2")
3. > The psychological profiling \[of a programmer\] is mostly the ability to shift levels of abstraction, from low level to high level. To see something in the small…

[Donald Knuth](https://quotesby.net/Donald-Knuth)[Donald Knuth quote \#4](https://quotesby.net/Donald-Knuth/4/ "Permalink to quote 4")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "That gets us out of deciding how to spell Reg[eE]xp?|RE . . . Of course, then we have to decide what ref $re returns... :-)",
    "url": "https://quotesby.net/Larry-Wall/145/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #145",
            "item": "https://quotesby.net/Larry-Wall/145/"
        }
    ]
}
```
