Skip to content

Use $1 rather than \1 to refer to regex matching group #4157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Feb 11, 2019

At least Perl 5.26 prints a warning each time; some quick Googling suggests that \n should be used
on the left of a match-and-replace to refer to an earlier match, and $n should be used on the right,
though \n is acceptable for historical reasons.

At least Perl 5.26 prints a warning each time; some quick Googling suggests that \n should be used
on the *left* of a match-and-replace to refer to an earlier match, and $n should be used on the right,
though \n is acceptable for historical reasons.
Copy link
Collaborator

@tautschnig tautschnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing this somewhat annoying warning :-)

Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️
Passed Diffblue compatibility checks (cbmc commit: d11c3f7).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/100478502

@tautschnig tautschnig merged commit 4c5c3e1 into diffblue:develop Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants