regex
正規表現
解説 Definition
正規表現。文字列のパターンマッチング用にプログラミング言語で使用される記号と規則の集合。
Regex is short for regular expression, a pattern used to search for or match text in a computer system. It is common in programming, data processing, and text editing. The word is mainly used in technical contexts and refers to a tool rather than ordinary language.
覚え方のコツ Memory Tip
regex はまず regular expression の略だと固定すると覚えやすいです。programming 文脈では単独で名詞として使われ、「write a regex」「match it with a regex」「regex pattern」の形で頻出。意味は“文字列を規則で表したパターン”。search / replace、validation、log 抽出など、文字列を“条件で拾う”場面と結びつけると定着します。JavaScript の RegExp はほぼ同じ仲間の呼び名です。
Remember that `regex` is the short form of `regular expression`. In programming, you often hear fixed phrases like `write a regex` or `regex pattern`, so learn it as a chunk. Link it with searching, matching, and replacing text, and the word will stick.
例文
The developer used regex to validate email addresses.
開発者はメールアドレスを検証するために正規表現を使用した。
Learning regex patterns can greatly improve text processing efficiency.
正規表現パターンを学ぶことで、テキスト処理効率を大幅に向上させることができる。
Regex is a powerful tool for searching and replacing text.
正規表現はテキスト検索と置換のための強力なツールである。
regex の類義語・関連語
類義語
regex の語源・成り立ち Etymology
regex は regular expression の短縮形です。regular はラテン語 regula「規則」(< regere「まっすぐ導く」)、expression は exprimere「外へ押し出す」(ex-「外へ」+ premere「押す」) に由来し、つまり「規則どおりに表した型」だから正規表現です。関連語は regulate, express。
Regex is a shortened form of regular expression. Regular comes from Latin regula, meaning "rule," while expression comes from Latin exprimere, "to press out," from ex- "out" and premere "press." Together, the phrase meant a pattern written in a rule-based way, and later it was clipped to regex. Related words include regulate and express.
外部辞書で調べる
この単語を英単語クイズで覚えよう