http://qs321.pair.com?node_id=926299


in reply to Re^2: separating two sententences
in thread separating two sententences

and you still have not told us what is not working. What happens when you run it? I spend all day with a QA department that thinks "doesn't work" is a legitimate bug report. I don't need it on the monks too ;)


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."

Replies are listed 'Best First'.
Re^4: separating two sententences
by Anonymous Monk on Sep 16, 2011 at 04:23 UTC

    i am totally confused with regex here.it doesnt recognize the word after ; and between " " and another question is email address.some of them start with numbers and some with alphabet.oooooooooh!!

      even though you STILL haven't told me what your error is, I'll try to help. Here is a different approach:
      while(<IN>) { chomp; my ($email,$name) = split /;/; $name =~ s/\"//g; print $email . ',' . $name . "\n"; }


      -pete
      "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."