summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTh3G33k <666th3g33k666@monmail.fr.nf>2024-04-19 20:05:39 -1000
committerGitHub <noreply@github.com>2024-04-19 23:05:39 -0700
commit182242d7c5927719e6c6e3761cbc1399dba0a5a3 (patch)
treecd0abeea3599583e6f7bdd8218f8086ba5acc21d
parentd66ea131e4afbb6932f0c4113aff510f56561e7f (diff)
[pcre/en] fix domain name => protocol (#4902)
-rw-r--r--pcre.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcre.html.markdown b/pcre.html.markdown
index 0ef96fd0..7fd237c8 100644
--- a/pcre.html.markdown
+++ b/pcre.html.markdown
@@ -6,7 +6,7 @@ contributors:
---
-A regular expression (regex or regexp for short) is a special text string for describing a search pattern. e.g. to extract domain name from a string we can say `/^[a-z]+:/` and it will match `http:` from `http://github.com/`.
+A regular expression (regex or regexp for short) is a special text string for describing a search pattern. e.g. to extract the protocol from a url string we can say `/^[a-z]+:/` and it will match `http:` from `http://github.com/`.
PCRE (Perl Compatible Regular Expressions) is a C library implementing regex. It was written in 1997 when Perl was the de-facto choice for complex text processing tasks. The syntax for patterns used in PCRE closely resembles Perl. PCRE syntax is being used in many big projects including PHP, Apache, R to name a few.