- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
What is doing the work for executing regular expressions?
- Erutan409
- Topic Author
- Offline
- New Member
Less
More
6 years 9 months ago #156727
by Erutan409
What is doing the work for executing regular expressions? was created by Erutan409
I've briefly looked through the documentation I could find based on some relevant searches, but I'm not 100% on what is actually handling the regex matching when using validation in my questions. Is it PHP-based or JavaScript-based?
Thank you!
Thank you!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
6 years 9 months ago #156734
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic What is doing the work for executing regular expressions?
PHP and JS
github.com/LimeSurvey/LimeSurvey/blob/ma...ore_helper.php#L2979
and
github.com/LimeSurvey/LimeSurvey/blob/ma...m_javascript.js#L388
github.com/LimeSurvey/LimeSurvey/blob/ma...ore_helper.php#L2979
and
github.com/LimeSurvey/LimeSurvey/blob/ma...m_javascript.js#L388
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Erutan409
The topic has been locked.
- Erutan409
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 9 months ago #156735
by Erutan409
Replied by Erutan409 on topic What is doing the work for executing regular expressions?
Super helpful. Thank you for the links!
The topic has been locked.
- Erutan409
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 8 months ago #157010
by Erutan409
Replied by Erutan409 on topic What is doing the work for executing regular expressions?
So, with that being said - how do I adequately test my regex patterns before making a survey live?
The topic has been locked.
- fvanderstarre
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 36
6 years 8 months ago #157058
by fvanderstarre
Replied by fvanderstarre on topic What is doing the work for executing regular expressions?
Hi, see for example:
regex101.com/
. There are many more...
The topic has been locked.
- Erutan409
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
6 years 8 months ago #157059
by Erutan409
Replied by Erutan409 on topic What is doing the work for executing regular expressions?
Thank you for the reply. To be direct - I'm aware of online tools such as
www.regex101.com
(my personal favorite) that can help me test my patterns. So, I apologize if I wasn't being clear enough with my previous question.
I was trying to ascertain when/if my patterns were being evaluated on the PHP side (using the PCRE engine) or on the front-end side (JavaScript). Which, would affect the patterns being valid when being executed, respectively.
I was having issues with some of in my inputs where I attached the aforementioned regex patterns and the error/notification messages weren't referring to any specific question that wasn't passing its validation. Hence, where my question was coming from.
I was trying to ascertain when/if my patterns were being evaluated on the PHP side (using the PCRE engine) or on the front-end side (JavaScript). Which, would affect the patterns being valid when being executed, respectively.
I was having issues with some of in my inputs where I attached the aforementioned regex patterns and the error/notification messages weren't referring to any specific question that wasn't passing its validation. Hence, where my question was coming from.
The topic has been locked.