Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Riddle with regex

by BillKSmith (Prior)
on Nov 07, 2020 at 18:14 UTC ( #11123475=note: print w/replies, xml ) Need Help??


in reply to Riddle with regex

I do not understand your examples! If I interpret your first one as my $valid0=q("hello"); it is invalid because it contains double quotes. If I ignore the surrounding quotes, there is nothing wrong with my $invalid0 = q('bad);. I cannot interpret them as valid Perl code because "bad is not. If there is any consistent way to read your examples, I cannot find it. You want a Perl solution. Please post your test cases as valid Perl strings.
Bill

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2021-04-12 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?