
File:Antony08.gif · Wikimedia Commons · See Wikimedia Commons
正则表达式
Sign in to saveAlso known as regex, regexp, regxp, RegExp, rational expression, Complement operator (regular expressions), regular expressions, rational expressions
形成搜索模式的字符序列
A regular expression is a sequence of characters that you can use to search for and find specific text patterns in documents or data. It matters because it lets you quickly locate, extract, or replace information without having to manually search through everything yourself.
AI-generated from the Wikipedia summary — may contain errors.
Described at

RegExr: Learn, Build, & Test RegEx
Regular expression tester with syntax highlighting, PHP / PCRE & JS Support, contextual help, cheat sheet, reference, and searchable community patterns.
regexr.com →Edit the Expression & Text to see matches. Roll over matches or the expression for details. PCRE & JavaScript flavors of RegEx are supported. Validate your expression with Tests mode. The side bar includes a Cheatsheet, full Reference, and Help. You can also Save & Share with the Community and view patterns you create or favorite in My Patterns. Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain describes your expression in plain English. Build a suite of tests that your expression should (or should not) match. Create new tests with the 'Add Test' button. Click a test to edit the name, type, & text. Any unsaved changes will be lost. Saved patterns & favorites will be migrated to your account.
Excerpt from a page describing this subject · 2,795 chars · not written by Vinony
Article · 中文
正则表达式(英語:Regular expression,常简写为regex、regexp或RE),又称規律表達式、正規表示式、正規表示法、規則運算式、常規表示法,是计算机科学概念,用簡單字串来描述、匹配文中全部符合指定格式的字串,現在很多文本编辑器都支援用正則表达式搜尋、取代符合指定格式的字串。 许多程序设计语言都支援用正則表达式操作字串,如Perl就内建功能强大的正則表达式引擎。正則表达式这概念最初由Unix的工具软件(例如sed和grep)普及开。
Abstract from DBpedia / Wikipedia · CC BY-SA