2009/12/21 Uri Guttman <u...@stemsystems.com>:
>>>>>> "JG" == Jim Green <student.northwest...@gmail.com> writes:
>
>  JG> I have a text file with lines like this
>
>
>  JG> ·         Experience in C/C++ realtime system programming
>
>  JG> ·         Experience in ACE, FIX
>
>
>  JG> Could anybody tell me which regex to use to get rid of the dot and the
>  JG> leading spaces before each Line?
>
> what have you tried? do you have any code at all to show? this list
> isn't for coding for you but to help perl beginners. this is a fairly
> easy problem so why don't you do a basic s/// op on a line, anchor it to
> the beginning and try to match what you don't want and replace it with
> a null string. i wrote it in english so you have to translate that to
> perl.

I am reading "learning perl" but have not proceeded to regex chapters.
I googled and got to know hot to delete preceding white space. but now
the problem is that there is an odd dot at the beginning...
I don't know how to write the pattern in s/pattern//, so a regex for
that will do. Sorry if it sounds stupid, anyway, Thanks for the help!

Jim

>
> uri
>
> --
> Uri Guttman  ------  ...@stemsystems.com  --------  http://www.sysarch.com --
> -----  Perl Code Review , Architecture, Development, Training, Support ------
> ---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------
>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to