Intellij Hotkey for marking regex checkbox on search/replace - regex

I have a question that's been bugging me for quite some time now. I'd like to minimize my mouse usage while working in IntelliJ.
When doing searches (ctrl+f) or replacing text (ctrl+r) I always have to manually check the "Regex" checkbox when I want to use regex. Is there a quick way to toggle this checkbox with my keyboard, or do I always have to use my mouse for that?
Simply tabbing to the checkbox does not seem to be an option as using tab simply jumps between the search and replace input-boxes.
I can't seem to find anything in the keymap settings nor on google :(
Thanks in advance. :)

Just hold Alt/Option button to see the mnemonics underscore. In my case I should use Option x to enable Regex.

Related

Geany search and replace in few keystrokes

I'm looking for a quick way to search and replace in Geany, particularly using regex. I can select a word and do Ctrl + H to bring up the dialog, then hit Tab and type in the replacement. But then I need to hoist the mouse up to the "InDocument" button.
Is there a way to do that with a keystroke? Web search did not turn up anything yet.
Also, is there a way I can do a quick regex search or search and replace?
When the Replace modal window is open, use the following keyboard shortcuts:
Alt+o for "In Session"
Alt+i for "In Document"
Alt+n for "In Selection"

Does Adobe Brackets maintain any kind of history of search and replace expressions?

Just now I was working on a fancy search and replace regular expression.
It looked good so I tested it on one entry then went to the editing area and the search and replace box went away.
I reopened the search and replace box to continue, but the selected text in the edit window replaced my search expression.
Control Z in the search box did not go back to my regex but undid the last change in the editing area.
I can't seem to find a way to get back to previous regexes in the find box. Is there any way? Googling turned up nothing.
Currently, Adobe Brackets doesn't maintain any kind of history of search and replace expressions. The feature is still missing.

Search and Replace with RegEx components in Atom editor

I want to search and replace this
`https://example.com/`{.uri}
to
[https://example.com/](https://example.com/)
With vim I would do a s/(http.*){.uri}/[\1](\1)/g but that doesn't work with atom.io. How can I solve this?
If you Cmd-F and open the search pane, there is a ".*" button at the right side. Click it and now it's regex mode.
I find
(http.*)\{\.uri\}
and replace to
[$1]($1)
Juste to update #speedogoo's answer for future readers, if you do not find the regex mode in the search view, it looks like this:
You can also open it with the shortcut Ctrl+Alt+/ (default).
Note that even ^ and $ are already supported by Atom's find-and-replace.

Different replace for the same word notepad++

I have these words: TOP and LOCK. I have 49 times this word but I would like to replace it with a different word a lot of times. For example, the first time with luc and the second times with pile.
I would like to make it automatically. I have the list of the replace words in a text file. I use Notepad++.
I have searched on many sites, but cannot find a good solution.
I don't have notepad ++ but can you highlight and right click there's an option to replace? or highlighting it then clicking format at the top and clicking replace and finally using Ctrl + F and replacing it that way? sorry if i could not help :)
try this:
tap ctrl + F
you can look at this pisture to get the picture:
http://im34.gulfup.com/Vkws5.jpg
Hope it help you
Highlight TOP
Press Search on top menu bar
Go to Replace
Under Find What, in Replace with field type what you want to replace it with
Then hit Replace All
You will then see the changes
I'm not very familiar with Notepad++ but I can do this with Sublime Text. I guess it doesn't hurt for you to try it out.
First, select all the words you want to replace with multiple cursor mode. Basically you can find TOP|LOCK with regular expressions, and hit Alt+Enter to convert the found words to multiple cursors.
Second, copy the words you want to replace and use the Text Pastry plugin to paste them in, one word at each cursor.
See here for a demo: http://imgur.com/a/KrBB8#0

Run Regex in Sublime || Make Regex Package in Sublime

Is it possible to run a regex snippet in Sublime text. Either by using a keyboard bind, or by creating a package?
The expression is
^\s*$
And it removes all double RETURNs/Lines in a document. Very handy for the OCD in me.
Any help, hints, tips or suggestions on this are more than welcome.
Thank you
You can hit Ctrl+H, for 'replace', this brings up a box at the bottom of the screen, click the .* button, enter ^\s*$, and it'll find all double enters, and you can replace them with whatever.
or there is a plugin that looks pretty powerful that should also allow you to do this called RegReplace.