freelanceprogrammers.org Forum Index » Perl
Re: Regular expression help
Joined: 03 May 2004
Posts: 8
Re: Regular expression help
> I also run into a very similar situation several other times in the
> document, where there is a group of miscellaneou character (including
> single white spaces), followed by a bunch of spaces
> For Example
> MS - Mfg. Straigh Time 65.63
(not tested!)
/ ^
s* # skip initial white space
(S.*S|S) # first field, embedded white space allowed
s+ # separating white space to second field
(S+) # second field
$
/x
Should work, but does anyone know if we can make the definition for
the first field simpler?
Ronald
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







