blob: 9067e58e66ef5abab7cbfbcda51327b97bd60dce [file] [log] [blame]
Denys Vlasenkof56fe822010-08-06 17:21:52 +02001Source: a*b\*c
2Replace str: _\\_\z_
3Pattern: single backslash and star: "replace literal star"
Denys Vlasenkof56fe822010-08-06 17:21:52 +02004Unquoted: a_\_z_b\*c
Denys Vlasenkoe3354bc2016-10-02 18:08:04 +02005Unquoted =: a_\_z_b\*c
Denys Vlasenko216913c2018-04-02 12:35:04 +02006Quoted: a_\_z_b\*c
7Quoted =: a_\_z_b\*c
Denys Vlasenkof56fe822010-08-06 17:21:52 +02008Pattern: double backslash and star: "replace backslash and everything after it"
Denys Vlasenkof56fe822010-08-06 17:21:52 +02009Unquoted: a*b_\_z_
Denys Vlasenkoe3354bc2016-10-02 18:08:04 +020010Unquoted =: a*b_\_z_
Denys Vlasenko216913c2018-04-02 12:35:04 +020011Quoted: a*b_\_z_
12Quoted =: a*b_\_z_
Denys Vlasenkof56fe822010-08-06 17:21:52 +020013
14Source: a\bc
15Replace str: _\\_\z_
Denys Vlasenko33bbb272010-08-07 22:24:36 +020016Pattern: single backslash and b: "replace b"
Denys Vlasenkof56fe822010-08-06 17:21:52 +020017Unquoted: a\_\_z_c
Denys Vlasenkoe3354bc2016-10-02 18:08:04 +020018Unquoted =: a\_\_z_c
Denys Vlasenko216913c2018-04-02 12:35:04 +020019Quoted: a\_\_z_c
20Quoted =: a\_\_z_c
Denys Vlasenkof56fe822010-08-06 17:21:52 +020021Pattern: double backslash and b: "replace backslash and b"
Denys Vlasenkof56fe822010-08-06 17:21:52 +020022Unquoted: a_\_z_c
Denys Vlasenkoe3354bc2016-10-02 18:08:04 +020023Unquoted =: a_\_z_c
Denys Vlasenko216913c2018-04-02 12:35:04 +020024Quoted: a_\_z_c
25Quoted =: a_\_z_c
Denys Vlasenkoe3354bc2016-10-02 18:08:04 +020026
27Source: a\bc
28Replace str: _\\_\z_ (as variable $s)
29Pattern: single backslash and b: "replace b"
30Unquoted: a\_\\_\z_c
31Unquoted =: a\_\\_\z_c
32Quoted: a\_\\_\z_c
33Quoted =: a\_\\_\z_c
34Pattern: double backslash and b: "replace backslash and b"
35Unquoted: a_\\_\z_c
36Unquoted =: a_\\_\z_c
37Quoted: a_\\_\z_c
38Quoted =: a_\\_\z_c
Denys Vlasenkof56fe822010-08-06 17:21:52 +020039
Denys Vlasenkob0fbe4b2010-08-05 17:19:27 +020040Done: 0