- How to create an auto-quiz?
- Saving a quiz as a template
- Flexible quiz scoring – questions worth different points
- How to create an interactive story?
- Order It: Riddle’s drag/drop sequence quiz
- How can I copy a quiz?
- Learn how to create a ‘Tap & Find’ quiz
- How are personality test results calculated?
- Can I send quiz takers to a URL based on their responses?
- Why use ‘call to action’ buttons?
- Quiz or personality test – what’s the difference?
- How to delete a lead form?
- Blue State Digital quiz integration
- Use Regex to validate lead form entries
- Delete quiz lead generation data
- Adding quiz leads and responses to Google Sheets
- Quiz Lead Generation 2.0 – connecting to MailChimp
- Quiz Lead Generation 2.0 – changing or disconnecting a data connection
- Riddle’s Zapier app – help & FAQ
- Quiz Lead Generation 2.0 – saving your data
- Quiz Lead Generation 2.0 – connecting your email software
- Quiz Lead Generation 2.0 – using form templates
- Quiz Lead Generation 2.0: creating a lead form
- Can I gather a user’s quiz responses (plus their email)?
- What email marketing tools does Riddle support?
- Where can I send my leads and quiz data?
- How can I use ‘Custom in-quiz iFrames’?
- What’s an in-quiz iFrame?
- Display iFrame below your quiz
- Unrolled quizzes – display all questions on one page
- Polls: Hiding & displaying vote totals
- Add a quiz timer
- How can I customize quiz social sharing?
- How can I change languages?
- Can I randomize/shuffle questions and answers?
- CSS editor – 40+ quiz styles and hacks
- How accessible are Riddle’s quizzes (for disabilities)?
- How can I hide the Riddle logo (or add my own)?
- Quiz: How I show quiz answers AFTER my lead form?
- Polls: Can I automatically open/close my poll at a set time/date?
- Personality tests: Multiple personality results (scoring)
- How can I customize my quiz colors?
- CSS editor – how can I use?
- How can I customize my quiz fonts?
- Why use ‘call to action’ buttons?
- Is Riddle responsive for mobile devices?
- Will Arabic, Farsi, and Hebrew display right to left (RTL)?
- Why use ‘lazy loading images’?
- How to use the custom offset
- Riddle’s quiz maker cookies and tracking
- Display your quiz on a blank page
- How does the ‘disable auto-scroll’ option work?
- Embedding Riddle quizzes in Unbounce landing pages
- AMP Support
- How can I share/publish my quiz?
- Can I embed my Riddle quiz on WordPress?
- Are my Riddles private?
- How to change the size of my embedded quiz?
- Why won’t my quiz work on my WordPress.com site?
- My quiz embed isn’t working – what should I do?
- How can I pay for Riddle?
- How can I change my personal info (email, name, etc.)?
- What happens after my 14 day trial?
- How do I upgrade my account?
- How can I change my plan?
- How can I edit/change my payment details?
- Where can I get copies of my invoices?
- How can I update my account’s personal info (name, email, etc.)?
- How can I change my password?
- Where can I download invoices?
- How do I change my email address?
Use Regex to validate lead form entries
Using a lead capture form before you show the results to a quiz, personality test or poll is a great way to get leads and grow your email list.
However, sometimes you need data from your users – and you want to make sure the data is in the right format for processing:
- Ensure a phone number is in the right format
- Make sure a street address contains a number
- Make sure an entry has a minimum number of characters
- For certain special characters
- Match elements of a URL (if you only want to limit entries to people with .edu domains, for example)
For all these purposes, here comes a super powerful new form field in the Riddle quiz maker lead generation form builder: REGEX fields (short for Regular Expressions)
We should tell you upfront – REGEX is powerful, but more than a little complex. Don’t fret – we’re to help out!
Are you a REGEX expressions wizard?
Just stop reading right here and log in to Riddle’s quiz maker – then add the new form field to your lead forms.
REGEX expressions rookie? Read on…
Right, for everyone else, get a cup of coffee and read on.
With REGEX you can make sure that the data entered into a form field follows a very specific formatting rule.
- For example, imagine your database requires all phone numbers to be in the format (area code)-3digits-4digits like (402)-123-3434:
- You can use REGEX to accept any slight variation of that – such as 1 (402).123.3434.
- Define the required format – your readers won’t be able to submit the form until their phone number matches that format.
- All the data in your database will be nice and consistent.
The regular expression you need to enter to achieve that result is:
Sure – not very intuitive, but once you get the hang of REGEX, you can do one heck of a lot.
Now, none of us here at Riddle have all these regular expressions memorized – but there are some really good websites to help you with this.
My current favorite: https://www.regextester.com/
- They have a great list of top regular expressions such as “Match dates”, “URL”, “Check if a string contains a number”.
- Plus they include both a cheat sheet and a tool so you can test your expressions before you add them to your Riddle quiz.
For a longer introduction, we recommend this Medium Post to read if you are brand new to Regex.