471,348 Members | 1,322 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

pattern for splitting address

Hi, i'm desperatly searching a regex pattern for split a list of
people address like this

ADDRESS
via a. pecoraro n. 4
p.zza sola, 14
via scardinata 117
via della scuola n.113
via n.ippolito, n.154/bis

in

ADDRESS: via a. pecoraro
N.RO: 113
ADDRESS: p.zza sola
N.RO: 14
ADDRESS: via scardinata
N.RO: 117
ADDRESS: via della scuola
N.RO: 113
ADDRESS: via n.ippolito
N.RO: 154/bis

The sample text i've pasted contains all combinations of
address-separator-civic number.

I've try with this pattern

(?<addr>.*)
(?<sep>,\s*(n.)?)
(?<civ>.*)

but it doesn't work with al address and, sometimes, the splitted words
are wrong.

Who can help me? ;-)

TIA,
Simone.

Dec 14 '05 #1
0 861

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Hans Almåsbakk | last post: by
5 posts views Thread by Ben | last post: by
6 posts views Thread by Earl Anderson | last post: by
6 posts views Thread by John Paulsson | last post: by
15 posts views Thread by Robbie Hatley | last post: by
1 post views Thread by Eric | last post: by
34 posts views Thread by Steven Nagy | last post: by
2 posts views Thread by David Jackson | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.