in reply to Re: Parsing a Text File
in thread Parsing a Text File
The final \s* is meaningless here; it will always be true.if(/^([A-Z]+)\s*/)
Also, based on the data set, he may want to use whitespace in his hash keys. How about this?
I decided to make sure that the first character is uppercase, but allow whitespace after that.if (/^([A-Z][A-Z\s]*)/)
buckaduck
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Parsing a Text File
by suaveant (Parson) on Apr 12, 2001 at 16:19 UTC |