Added the \CregexpC syntax as an alternative for /regexp/ (like GNU sed)
diff --git a/editors/sed.c b/editors/sed.c
index 84aea9b..5fc3a14 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -194,7 +194,11 @@
*linenum = -1;
idx++;
}
- else if (my_str[idx] == '/') {
+ else if (my_str[idx] == '/' || my_str[idx] == '\\') {
+ if (my_str[idx] == '\\') {
+ my_str[idx] = 0;
+ sed_cmd-> delimiter = my_str[++idx];
+ }
idx = index_of_next_unescaped_regexp_delim(sed_cmd, my_str, ++idx);
if (idx == -1)
error_msg_and_die("unterminated match expression");