6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/23/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3541] Improper regular expressions for matching addresses in Horde/UI/VarRenderer/html.php
*
Your Email Address
*
Spam protection
Enter the letters below:
.. .__. __ . . || | |/ `|_/ \__||___|__\\__.| \
Comment
> The regular expression ACT|NSW|NT|QLD|SA|TAS|VIC|WA for matching > Australian addresses also matches addresses that contain the text > "USA", ie. US American addresses. I think that the regex should check > for word boundaries: \b(ACT|NSW|NT|QLD|SA|TAS|VIC|WA)\b. Possibly, > the regex for UK addresses should also be updated. > > > > BTW, what about adding comments with example addresses that show what > address style these regular expressions are supposed to match? > > > > The code for European style addresses doesn't seem to match German > addresses. At least, not the address style suggested by the German > Post. Here's an example for national mail: > > > > Muster GmbH COMPANY NAME (optional, of course) > > Max Mustermann FIRST NAME followed by LAST NAME > > Musterstr. 1a STREET or P.O. BOX > > 12345 Musterhausen POSTAL CODE followed by CITY NAME > > > > The German postal code must never be prefixed with "D-" although > there are still people who do this. Instead, the country name must be > given in German, French or English on another line. An example for > international mail: > > > > John Dundee > > Harbour Place 4 > > CANBERRA ATC 4568 > > AUSTRALIEN > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers