Skip to content

Commit 748320b

Browse files
committed
Add: lex
1 parent 451bf74 commit 748320b

File tree

2 files changed

+40
-6
lines changed

2 files changed

+40
-6
lines changed

README.org

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,19 @@ This gives a table like:
19051905
:archive.is: http://archive.is/xPWJP
19061906
:END:
19071907

1908-
*** Libraries
1908+
*** Libraries :libraries:
1909+
1910+
**** [[https://elpa.gnu.org/packages/lex.html][lex]]
1911+
1912+
=lex= is a regular expression matching engine with syntax similar to =rx=. It appears to be more implemented in elisp than standard Emacs regexp tools, so it may be slower, but its additional capabilities may be useful.
1913+
1914+
#+BEGIN_QUOTE
1915+
Format of regexps is the same as used for `rx' and `sregex'. Additions:
1916+
1917+
- =(ere RE)= specify regexps using the ERE syntax.
1918+
- =(inter REs...)= (aka =&=) make a regexp that only matches if all its branches match. E.g. =(inter (ere ".*a.*") (ere ".*b.*"))= match any string that contain both an =a= and a =b=, in any order.
1919+
- =(case-fold REs...)= and =(case-sensitive REs...)= make a regexp that is case sensitive or not, regardless of case-fold-search.
1920+
#+END_QUOTE
19091921

19101922
**** TODO [[https://github.com/joddie/pcre2el][pcre2el: Convert between PCRE, Emacs and rx regexp syntax]]
19111923

index.html

Lines changed: 27 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)