Questions tagged [replace-regexp-in-string]
The replace-regexp-in-string tag has no summary.
4 questions
0
votes
1
answer
146
views
How to regex replace a string with matches in purely scripting, not reading from buffer
I'm a beginner in Emacs and Elisp, but do have programming experience.
My question is quite straightforward, I want to have a command open-git that when in a git directory, it opens the url inside a ...
0
votes
1
answer
84
views
Replacing in nested regexps
I'm having to replace the configurations of keymaps in my use-package with define-key expressions and thought I'd use that to get more proficient with using regexp-replace. The situation is this:
(:...
0
votes
1
answer
272
views
Am I using "replace-regexp-in-string" the right way?
I want to view ~/.zsh_history files the way they are displayed by the history command with raw unixtimestamps converted to properly formatted dates.
: 1568128379:0;cp -a ~/.zshrc.pre-oh-my-zsh ~/....
0
votes
0
answers
73
views
replace-regexp-in-string inserting rather than replacing at some matches
This is my first question. My searches through answers to (some of the) similar questions hints that I likely have to educate myself on Match Data, but I'm asking here now anyway.
Anyway, I have a ...