IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: bvleer1962
About
User Name: bvleer1962
Forum Rank: Newbie
Real Name:
Location
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, May 14, 2019
Last Visit: Tuesday, May 14, 2019 5:18:15 PM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: split address field
Posted: Tuesday, May 14, 2019 1:06:44 PM
Hi, I want to split my address field which contains streetname, number, and extension in 1 field. For example: Highway 10 b
So I want to split this field in minimum 2, maximum 3 fields. (Streetname and number Always available, extension not Always).
Apparantly this xpath should do it:

/^(.+) ((?i)[\d]+[\da-z-]*)$|^((?i)[\d]+[\da-z-]*), (.+)$/

But when entering this in te tokenize-regexp function I ge a syntax error on the syntax of this expression?

Questions:

What is wrong with the syntax?
What is the best way to achieve my goal? Is this the tokenize-regexp function?


Use of the Altova User Forum(s) is governed by the Altova Terms of Use.