Re: grep help request -- data fields max size
- From: dowda@xxxxxxxxxxxxxxxxxx (David Gilden)
- Date: Fri, 28 Oct 2005 17:16:07 -0500
Thanks Jay,
For your recommendation, is there a way I can limit the size,
something like: [\w\.-]{1,50}
or should I do that I bring in the data for first time?
Have a great weekend!
Dave Ft. Worth, Tx
[ www.coraconnection.com ]
> It's going to be a whole lot easier, and probably just as fast, to use
> split() and join() to break the strings apart and operate on each part
> of the name separately. Also, once you've split the names, Perl has a
> built-in ucfirst() function--see perldoc -f ucfirst--so you don't even
> really need to write your own regex.
>
> $SendersName = join(' ', map {ucfirst($_)} split / /, $SendersName);
>
> Names are more complicated tha you think, though. What will you do
> with strings like 'old mcdonald', 'old macdonald', and 'c.j. price'?
.
- Prev by Date: Re: Dir Command to an array
- Next by Date: Re: <> tag in perl
- Previous by thread: Dir Command to an array
- Next by thread: Re: Perl/sh/bash scripts and emacs
- Index(es):
Relevant Pages
|
|