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
@nfischer The branching and flow control part (:a;N;$!ba;) is not there in JS regex. The substitution (s/\n/ /g) can be directly done using JS replace.
Hmm OK. Anything beyond simple regex support is unlikely to be supported. If you can refactor to use other unix commands instead (ex. see my replies on #983), I recommend using that workaround.
I would like to request support for expressions like this:
sed -i ':a;N;$!ba;s/\n/ /g' file
Refer: https://stackoverflow.com/a/1252191/11613622
Currently, it is only supported by GNU sed; can be considered as low-priority (though the linked SO thread has over 2M views).
The text was updated successfully, but these errors were encountered: