Skip to main content
regex

regex

1 6.9
A set of characters that tells a program how to find text
  • noun
  • /ˈrɛɡɛks/
  • Specialized
translation icon : expresión regular
  • In programming, a regex is often used to validate user input formats like email addresses.

Examples

  • So it's really scholarly people who know how to write a regex, right?

  • Some simple (but smart) regex should be able to separate the lines into.

    Blog text (12)
  • In the regex class, there is a "capture," but if you're writing something for a mobile phone, it could mean taking a picture.

    Blog text (19)
  • The application finder has been rewritten; its user interface has been improved. It now supports user-defined actions based on matching a prefix or a regex pattern, and it now replaces the "Run Program" dialog.

    Blog text (7)
  • The regex pattern "\d{3}-\d{2}-\d{4}" can be used to match Social Security numbers in the text.

  • When parsing data, it's essential to write an accurate regex to extract relevant information from logs.

Synonyms

regexp
vsregex
  • Specialized
2 8.2

A pattern of characters people use to find or change text

is the same concept but emphasizes programming use and matching text

How Complex

regex
  • Specialized
1 6.9
wildcard
  • Specialized
1 4.6

Surface Forms

regex singular
regexes plural

Morphology

regex = regular + expression (semi-transparent) = regular + expression

Formed by clipping/blending of 'regular' + 'expression' to create a technical term; the morphological source is clear but the specialized computing meaning is jargon-specific.

Etymology

The word regex is a short form of regular expression, where regular means following a 'rule' and expression means a way to 'say' something. So a regex is like a small 'pattern' or rule that tells a computer what text to find.