• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Define input format

Define input format 7 years 1 month ago #38003

  • parelweb
  • parelweb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
Hi all,

I'm looking for a way to make a kind of monkeyproof input for a Dutch postal code. I've manged to get the check on 4 digits and 2 letters with a regex: /^[1-9]{1}[0-9]{3} ?[a-zA-Z]{2}$/

I also have the letters transformed into capitals with style="text-transform:uppercase;"

The only thing i still want is to have an automatic space between the forur digits and the letters so it will always look like "1234 AA" and not "1234AA".

Is there any way this can be achieved?

Thx,
Hans
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!