From 182242d7c5927719e6c6e3761cbc1399dba0a5a3 Mon Sep 17 00:00:00 2001 From: Th3G33k <666th3g33k666@monmail.fr.nf> Date: Fri, 19 Apr 2024 20:05:39 -1000 Subject: [pcre/en] fix domain name => protocol (#4902) --- pcre.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcre.html.markdown') 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. -- cgit v1.2.3