Regex Help?

Ed Felt edfelt at gmail.com
Sat Oct 8 13:59:54 MDT 2011


On Oct 8, 2011 1:49 PM, "Steve Meyers" <steve-plug at spwiz.com> wrote:
>
> On 10/8/11 1:19 PM, S. Dale Morrey wrote:
> > Item Item Description Page # Retail Member Wholesale Pkg
> > 12137 HOLIDAY PENGUIN FIGURINES 335 9.95 4.25 5.95 1 PR
>
> Can there be more than one whitespace in between fields?  If so, add a +
> after each space.  I'm also assuming that the unit is always upper case
> letters only.
>
> /^([0-9]+) (.+) ([0-9]+) ([0-9.]+) ([0-9.]+) ([0-9.]+) ([0-9]+) ([A-Z]+)$/
>
>
> Steve
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */

I would use sed (assuming this is a text file).


More information about the PLUG mailing list