blob: 9067e58e66ef5abab7cbfbcda51327b97bd60dce [file] [log] [blame]
Denys Vlasenko36f774a2010-09-05 14:45:38 +02001Source: a*b\*c
2Replace str: _\\_\z_
3Pattern: single backslash and star: "replace literal star"
Denys Vlasenko36f774a2010-09-05 14:45:38 +02004Unquoted: a_\_z_b\*c
Denys Vlasenkoc49d2d92010-09-06 10:26:37 +02005Unquoted =: a_\_z_b\*c
Denys Vlasenko216913c2018-04-02 12:35:04 +02006Quoted: a_\_z_b\*c
7Quoted =: a_\_z_b\*c
Denys Vlasenko36f774a2010-09-05 14:45:38 +02008Pattern: double backslash and star: "replace backslash and everything after it"
Denys Vlasenko36f774a2010-09-05 14:45:38 +02009Unquoted: a*b_\_z_
Denys Vlasenkoc49d2d92010-09-06 10:26:37 +020010Unquoted =: a*b_\_z_
Denys Vlasenko216913c2018-04-02 12:35:04 +020011Quoted: a*b_\_z_
12Quoted =: a*b_\_z_
Denys Vlasenko36f774a2010-09-05 14:45:38 +020013
14Source: a\bc
15Replace str: _\\_\z_
16Pattern: single backslash and b: "replace b"
Denys Vlasenko36f774a2010-09-05 14:45:38 +020017Unquoted: a\_\_z_c
Denys Vlasenkoc49d2d92010-09-06 10:26:37 +020018Unquoted =: a\_\_z_c
Denys Vlasenko216913c2018-04-02 12:35:04 +020019Quoted: a\_\_z_c
20Quoted =: a\_\_z_c
Denys Vlasenko36f774a2010-09-05 14:45:38 +020021Pattern: double backslash and b: "replace backslash and b"
Denys Vlasenko36f774a2010-09-05 14:45:38 +020022Unquoted: a_\_z_c
Denys Vlasenkoc49d2d92010-09-06 10:26:37 +020023Unquoted =: a_\_z_c
Denys Vlasenko216913c2018-04-02 12:35:04 +020024Quoted: a_\_z_c
25Quoted =: a_\_z_c
Denys Vlasenkoc49d2d92010-09-06 10:26:37 +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 Vlasenko36f774a2010-09-05 14:45:38 +020039
40Done: 0