On Mon, Aug 24, 2009 at 12:19 PM, Gregory Machin<g...@linuxpro.co.za> wrote: > Hi > > I'm writing a script to import logs into a Mysql .. My Perl is rusty > and I'm battling with a convention on the one column. I need to > remove the text in inverted commas "Prashil" 106 so that just the > number 106 remains.. I have been trying the following regex > s/(\"([^"]+)\"\s)//g but it doesn't seem to work. I got it from a > website .. It looked correct .. mmm .. with regard to it's structure i > don't quite get ([^"]+) as I have tried replacing it with other > combinations and had less luck. I have also tried > s/\"([:word:])\"\s)//g ... no. This is worked with me 's/\"[[:alpha:]]\"//g' > Thanks for advise in advance > > Gregory Machin > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/