[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Subject: gensub() matched component always empty, even for the exact tex
From: |
J Naman |
Subject: |
Subject: gensub() matched component always empty, even for the exact text of the example in the manual |
Date: |
Sun, 3 Apr 2022 12:58:01 -0400 |
When I tried: b = gensub(/(.+) (.+)/, "\2 \1", "g", a)
instead of: b = gensub(/(.+) (.+)/, "\\2 \\1", "g", a)
I got 3 characters output: STX_SOH where _ == space
== 0x02_0x01 where _ == space
backslashes can be such a pain sometimes ...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Subject: gensub() matched component always empty, even for the exact text of the example in the manual,
J Naman <=