We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
would be great if your module would be able to do get the grouped characters from a substitution regex like this perl script does:
#!/usr/bin/perl $sentence = "This is whatever."; $sentence =~ s/([\.,:;]$)//; $remove_punctuation_mark = $1; print "<$sentence><$remove_punctuation_mark>\n";
I didn't find any way to do this with the normal python regex. With your perl module I would expect this to work:
#!/usr/bin/python3.8 -mperl sentence = "This is whatever." sentence =~ s/([\.,:;])$// remove_punctuation_mark = $1 print(t, remove_punctuation_mark)
But this gives 2 errors:
Error: sentence =~ s/([\.,:;])$// ^ SyntaxError: unexpected character after line continuation character
sentence =~ s/([\.,:;])$// ^ SyntaxError: unexpected character after line continuation character
If the regex is changed to e.g. s/([.,:;])$/X/ it throws the error: NameError: name '__perl__var__1' is not defined
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
would be great if your module would be able to do get the grouped characters from a substitution regex like this perl script does:
I didn't find any way to do this with the normal python regex. With your perl module I would expect this to work:
But this gives 2 errors:
Error:
sentence =~ s/([\.,:;])$// ^ SyntaxError: unexpected character after line continuation character
If the regex is changed to e.g. s/([.,:;])$/X/ it throws the error: NameError: name '__perl__var__1' is not defined
The text was updated successfully, but these errors were encountered: