View Single Post
Old 01-09-2015, 05:01 AM   #1
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
Replacing with regex

EDIT: Solved

Let's say I want to replace all the occurrences of dash+digit, without a space, with dash space digit.

I can use a regex to find what I look for (a very simple one: -[:alpha:], for example), but I don't know how to automatically insert a space. The issue of course is somehow "saving" that digit each time, "copying" it, and pasting it after inserting the space.

I got a vague notion this could be done with javascript, but is there a simpler way?

ty

EDIT: Issue had already been solved, here. If I put the regex between (brackets) it saves the value it finds, which then I can paste by writing \1 in the "replace" field. So cool And it works outside sigil as well (I just tried it w n++)

Last edited by 1v4n0; 01-09-2015 at 05:13 AM.
1v4n0 is offline   Reply With Quote