- Posts: 11
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
RegEx email validation in 1.91
- AndrejL
- Topic Author
- Offline
- New Member
Less
More
10 years 1 month ago #105733
by AndrejL
RegEx email validation in 1.91 was created by AndrejL
Hi!
I can seem to validate an email address. I'm using short free text question on a Limesurvey 1.91+ version.
When I put
"/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/"
in validation filed and click Save RegEx changes to
"/^(\\w[-._+\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,3})$/" (double slashes inside).
And of course it doens't not work. What am I doing wrong?
Thank you,
Andrej
I can seem to validate an email address. I'm using short free text question on a Limesurvey 1.91+ version.
When I put
"/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})$/"
in validation filed and click Save RegEx changes to
"/^(\\w[-._+\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,3})$/" (double slashes inside).
And of course it doens't not work. What am I doing wrong?
Thank you,
Andrej
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
10 years 1 month ago #105736
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic RegEx email validation in 1.91
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
- AndrejL
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
10 years 1 month ago #105739
by AndrejL
It's the same. If I insert your /(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})/ and save
it changes to /(\\w[-._\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,3})/
Replied by AndrejL on topic RegEx email validation in 1.91
Ben_V wrote: Hi,
/(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})/
Cf. doc
It's the same. If I insert your /(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})/ and save
it changes to /(\\w[-._\\w]*\\w@\\w[-._\\w]*\\w\\.\\w{2,3})/
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
10 years 1 month ago #105776
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic RegEx email validation in 1.91
very weird...
Have a look at this previous post to get an example about how you can set your regex using embeded javascript.
On the other hand, maybe it's time to update your installation if you can, for the less to the 1.92 release.
Have a look at this previous post to get an example about how you can set your regex using embeded javascript.
On the other hand, maybe it's time to update your installation if you can, for the less to the 1.92 release.
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.