Skip to content
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

Use of regex characters as substitution delimiter fails #3091

Closed
p6rt opened this issue Mar 30, 2013 · 4 comments
Closed

Use of regex characters as substitution delimiter fails #3091

p6rt opened this issue Mar 30, 2013 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Mar 30, 2013

Migrated from rt.perl.org#117415 (status was 'resolved')

Searchable as RT117415$

@p6rt
Copy link
Author

p6rt commented Mar 30, 2013

From @ShimmerFairy

<labster> r​: my $a = 'gfoo'; $a ~~ s@​gf@​f@​;
<p6eval> rakudo 897636​: OUTPUT«===SORRY!===␤Variable '@​f' is not
declared␤at /tmp/hTstr3dCxL​:1␤------> my $a = 'gfoo'; $a ~~ s@​gf@​f⏏@​;␤»

<lue> r​: my $a = "gfoo"; $a ~~ s^gf^f^; say $a;
<p6eval> ..rakudo 897636​: OUTPUT«===SORRY!===␤Unrecognized regex
metacharacter ; (must be quoted to match literally)␤at
/tmp/a5KNf0HcNh​:1␤------> my $a = "gfoo"; $a ~~ s^gf^f^⏏; say
$a;␤Couldn't find terminator $stop␤at /tmp/a5KNf0HcNh​:1␤------> my $a = "g…

It would seem that characters which hold some meaning in regexes can't
be used to delimit substitutions.

@p6rt
Copy link
Author

p6rt commented May 17, 2013

From @FROGGS

Fix​: Raku/nqp@c3cdeb6e37
Test​: Raku/roast@83871378dd

@p6rt
Copy link
Author

p6rt commented May 17, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 17, 2013

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed May 17, 2013
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

No branches or pull requests

1 participant