Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Regex with Backslashes (updated)

by AnomalousMonk (Archbishop)
on May 18, 2020 at 19:08 UTC ( [id://11116911]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regex with Backslashes (updated)
in thread Regex with Backslashes

How does that work if you have a null (absolutely empty) comma-separated field? Can you have such fields in your application? Why not just split the original non-escaped commas a la this or some similar approach if you do not want to use a module?


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

Replies are listed 'Best First'.
Re^4: Regex with Backslashes (updated)
by anita2R (Scribe) on May 18, 2020 at 19:23 UTC

    I have code already that handles absolutely empty comma-separated fields, even if the number of fields does not match the anticipated number of fields, so I should be OK with that. But thanks for pointing out a potential point of failure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (1)
As of 2024-04-24 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found