Skip to content

Commit

Permalink
[pcre/en] fix domain name => protocol (#4902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3G33k committed Apr 20, 2024
1 parent d66ea13 commit 182242d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcre.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 182242d

Please sign in to comment.