У меня есть такая строка
-U, --update Update this program to latest version. Make
sure that you have sufficient permissions
(run with sudo if needed)
-i, --ignore-errors Continue on download errors, for example to
skip unavailable videos in a playlist
--abort-on-error Abort downloading of further videos (in the
playlist or the command line) if an error
occurs
Моя цель - преобразовать это в это:
-U, --update Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)
-i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist
--abort-on-error Abort downloading of further videos (in the playlist or the command line) if an error occurs
с использованием регулярных выражений.
Я предположил
-U, --update Update this program to latest version. Make
sure
совпадает с -U, --update Update this program to latest version. Make
+ новая строка + определенное количество пробелов. Поэтому, чтобы заменить это, мне нужно заменить новую строку \n
+ () на пробел.
И все же он не заменит его.
Что такое правильное регулярное выражение (я использую для этого pspad)