You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@angelo-mollame: Thank you so much for having made this plugin. It is really helpful.
I do have a request. I have files in which I need to replace spaces in quoted phrases with --characters, but not outside the quotes. Currently, this is how I do it:
replace-regex "(\s"[^"\s]*?)\s([^"]*"\s)"
with "$1-$2"
replace-regex "(\s"[^"\s]*?)\s([^"]*"\s)"
with "$1-$2"
replace-regex "(\s"[^"\s]*?)\s([^"]*"\s)"
with "$1-$2"
but this only works for the first three spaces. This cannot be made to work generically.
I would love to see command-looping syntax, e.g. as follows
repeat <n>
replace-regex "(\s"[^"\s]*?)\s([^"]*"\s)"
with "$1-$2"
which would mean that the replace command would be executed times, or until there is no longer a match. The times is to ensure that the loop terminates (and is helpful in other use-cases as well).
Would that be possible?
The text was updated successfully, but these errors were encountered:
@angelo-mollame: Thank you so much for having made this plugin. It is really helpful.
I do have a request. I have files in which I need to replace spaces in quoted phrases with
-
-characters, but not outside the quotes. Currently, this is how I do it:but this only works for the first three spaces. This cannot be made to work generically.
I would love to see command-looping syntax, e.g. as follows
which would mean that the replace command would be executed times, or until there is no longer a match. The times is to ensure that the loop terminates (and is helpful in other use-cases as well).
Would that be possible?
The text was updated successfully, but these errors were encountered: