Escape quotes and matched backslashes in perl match results #2

Merged
merged 1 commit into from Nov 4, 2013

Conversation

Projects
None yet
2 participants
Contributor

purcell commented Jul 20, 2012

When matching text containing backslashes, e.g. "\n", the "Group" output will display this as a newline. To prevent this, we have perl escape any backslashes in the group output so that 'read will handle the expression correctly.

Further, if the matched text contains double quotes, the resulting sexp printed by the perl program is invalid, and so the *Groups* buffer is empty. This commit also fixes this second issue.

@purcell purcell Escape quotes and matched backslashes in perl match results
When matching text containing backslashes, e.g. "\n", the "Group" output will display this as a newline. To prevent this, we have perl escape any backslashes in the group output so that 'read will handle the expression correctly.

Further, if the matched text contains double quotes, the resulting sexp printed by the perl program is invalid, and so the `*Groups*` buffer is empty. This commit also fixes this second issue.
86577ce
Contributor

purcell commented Nov 2, 2013

Bump. :-)

@jwiegley jwiegley added a commit that referenced this pull request Nov 4, 2013

@jwiegley jwiegley Merge pull request #2 from purcell/patch-2
Escape quotes and matched backslashes in perl match results
3c2dd84

@jwiegley jwiegley merged commit 3c2dd84 into jwiegley:master Nov 4, 2013

Contributor

purcell commented Nov 5, 2013

Thanks John. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment