Hello all,

  This one seems to be eluding me, and I'm hoping someone here can wrap their
mind around it.

  I'm using Perl.  I'm looking for a regexp for use with split() that will
match the boundary between a digit and a letter (or a letter and a digit).

  What I'm trying to do is split an arbitrarily complex version number, in the
general form of 1.2.3a-4b.5.c6, into its component parts.  Using that same
example, I'm after the list (1, 2, 3, a, 4, b, 5, c, 6).

  The first part is easy, just use "split /[-.]/".  That will get me (1, 2,
3a, 4b, 5, c6).

  The second part, splitting 3a into (3, a), and so on, is what is stumping
me.  I was hoping to use something based on /(?![a-z])(?=[a-z])/, i.e., a
zero-width match on a non-letter followed by a letter, but that doesn't seem
to work.

  Any Perl guru's here know of a quick and easy answer?

-- 
Ben Scott <[EMAIL PROTECTED]>
Net Technologies, Inc. <http://www.ntisys.com>
Voice: (800)905-3049 x18   Fax: (978)499-7839


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to