


Thank you JetBrains for letting me use IntelliJ IDEA for free as a student. I got to know it from this Stackoverflow answer. (Basically the part enclosed by brackets in regex is assigned to variable $1 like that.) So simply any string with double quotations will be replaced with single quotations using this. WebStorm treats your code as regular text. In strings under double quotations, the middle part will be the one we use as $1 in replace section. Now as your regex pattern in find you could use, "(\S*)"Īs the string in replace. Ultimate will also recognize HTML/CSS code fragments in languages like Python, PHP, Java and provide code completion / formatting help. Basically it’s like changing, "mytitle1" to 'mytitle1' "mytitleZ" to 'mytitleZ' All the tools you're used to in Webstorm are there, though some of them are plugins that you'll have to install (whereas webstorm has them bundled). Say you want to change all string which are in double quotations to single quotations. download/attachments/\d*Įx02: Here is the most coolest feature. Then you can type any regex which is related to your pattern. Find Windows / Linux: Ctrl + F OS X / macOS: Cmd + F Find next. So in find section (you get this by CTRL + F for a file or CTRL + SHIFT + F by selecting a directory) you can select “regex” option. Say this here, “image:/download/attachments/983129/address-state-chart.png?version=3&modificationDate=1318249062000&api=v2”Įx01: Now if I want to get rid of this, “/download/attachments/some_digits” part in a set of similar strings. Here I’ll show a few examples as some of those are not that well documented. I had actually set this up as a maven project with AsciiDoctor in IntelliJ IDEA so that is where I got to use this cool feature, find and replace with regex. So after using that tool I was left to do a bit of final touches which included a lot of find and replace kind of work. An awesome tool called Pandoc saved me a lot of work. Recently I had to convert some documents which was on HTML format to Asciidoc format.
