Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: split $data, $unquoted_value;

by Codon (Friar)
on Sep 14, 2005 at 20:40 UTC ( #492006=note: print w/ replies, xml ) Need Help??

in reply to split $data, $unquoted_value;

Put this in your split and see how it fits:

my $re = qr/(?<!["'])(?<=\.)\s*(?!["'])/;
This will split behind the period, but only if it is not (directly) quoted.

Edit: added \s* to strip out space between sentences.

Ivan Heffner
Sr. Software Engineer, DAS Lead, Inc.

Comment on Re: split $data, $unquoted_value;
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-11-28 01:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls