Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Riddle with regex

by AnomalousMonk (Bishop)
on Nov 08, 2020 at 00:13 UTC ( #11123479=note: print w/replies, xml ) Need Help??

in reply to Riddle with regex

As an example of my confusion about requirements (as I and others have already noted):

  • The OPed example strings 'bad" "bad can only be defined (in Perl) by some statement | expression like q{'bad"} q{"bad} respectively. This implies that the double-quotes at the start and end of "hello" and various other examples of valid strings are required parts of the string, and could be defined as q{"hello"} or similar. Is this true?
  • What is the classification of '' (or q{}, the empty string)? How about things like q{""} and q{"''"}? Edge cases are important.

Give a man a fish:  <%-{-{-{-<

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-06-22 20:42 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (108 votes). Check out past polls.