[UPHPU] Regex problem

D. Turnbull turnbud at gmail.com
Sun Dec 16 15:57:59 MST 2007


I have a string that I need to split into an array. The string always
follows this format:

[Alpha w/spaces], [Alpha w/spaces] [Number] [Date] [Alpha w/spaces]
[Number w/ comma/dot] [Number w/ comma/dot] [Alpha]

A good programmer, I'm certain, could do this with a single regex. Not
being a good programmer, I could do it if I could find the position of
the first occurrence of a *type* of character. Is this possible?

Regards,

Dave


More information about the UPHPU mailing list