Regular Expressions #2 - Post ID 237973

User 2706904 Photo


Registered User
3 posts

Is there any way to restrict number fields such as Height Weight and Blood Pressure but with the option of
Weight eg 200 lbs or 90 kilos
Height eg 5'10" or 180 cms
Blood Pressure eg 120/80

Sorry,I am newbie to all this - any examples would be gratefully received
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Let me look at this a bit.
I have the weight and blood pressure but the height is proving to be problems with the form builder.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 38401 Photo


Senior Advisor
10,951 posts

Eric, are you trying to do it in one box? If so would it maybe work out well using a separate box for Feet and Inches? If you're doing that already then never mind, just throwing it out there in case you weren't :)
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I was going to suggest each being in their own element but I have the regular expression working in FB. The form builder is escaping the " and the ' with a \ at submit thus tripping the regular expression as invalid.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2706904 Photo


Registered User
3 posts

Thanks so far

If I can get 2 out of 3 to work then that would be real progress :-)

So what regular expression would I use for the BP & the Weight?

Is there another way to express height - perhaps in full - feet/inches, not as neat but if I can do that it would be fine
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I'm discussing the issue with the CC gurus to see if there's a bug or I may need to use a different approach.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Here's the form the way it is now. The height isn't working correctly as of yet. Still getting feed back on the problem.
http://ericrohloff.com/coffeecup/ccforu … stats-reg/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2706904 Photo


Registered User
3 posts

Many thanks Eric - very helpful
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I put the regular expressions inside the friendly hint so you can try them yourself. let me know if they all work ok.
http://ericrohloff.com/coffeecup/ccforu … stats-reg/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.