New answers tagged regular-expressions
0
votes
re-search-forward search for double and reverse quotation mark character
The function does work with the expression, the mistake was poor tracking of the position of the point. Below code
(defun otmKvhk()
"Отметка выражений в кавычках
Обрабатывается ...
1
vote
re-search-forward search for double and reverse quotation mark character
You need to use
"[\"`]"
for the regexp part.
It is easier to build regular expressions with rx or rx-to-string.
Here is a demo using M-x ielm.
*** Welcome to IELM *** Type (describe-...
1
vote
Combine two commands
As comments have mentioned, org-toggle-item may suit your needs. Though this seems like a great opportunity to learn Emacs Lisp. The following code though does as explain:
(defun my-toggle-item (...
2
votes
Accepted
regexp fails over expression involving {}
In fact, the problem comes from the unescaped [ and ].
M-x query-replace-regexp \\includepdf\[pages={1-}\]{.*} → \\includepdf[pages={1-}]{TEST}
works for me.
Top 50 recent answers are included
Related Tags
regular-expressions × 435replace × 54
search × 43
font-lock × 26
query-replace × 21
org-mode × 19
string × 18
query-replace-regexp × 12
rx × 12
dired × 10
elisp × 9
isearch × 9
syntax-highlighting × 8
auctex × 7
whitespace × 7
align × 7
evil × 6
major-mode × 6
latex × 5
text-editing × 5
highlighting × 5
unicode × 5
syntax-table × 5
syntax × 5
newlines × 5