- How to create an auto-quiz / quiz generator?
- Enhanced security for online polls and quizzes
- 5 steps to create a GDPR-compliant quiz
- Add an opacity fade
- How to format your quiz text?
- Add a WordPress quiz leaderboard to your site
- Creating a multi-poll
- Saving a quiz as a template
- Flexible quiz scoring – questions worth different points
- How to create a journey (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?
- ActiveCampaign integration
- Using Zapier.com lookup tables
- Email quiz results to each lead
- Webhook signatures
- Embed videos in a lead form
- Add hidden text and hidden query fields to your form
- Add a WordPress quiz leaderboard to your site
- 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
- Zapier and Riddle – send leads to any software
- 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?
- Place your logo above your quiz
- Insert ad tags in your Riddle quizzes
- Setting the share image for Facebook
- Using a Facebook App to white-label your social shares
- Set up your Riddle quiz leaderboard
- Display ads above or 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
- Accessible quiz maker: 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)?
- Webhook signatures
- Load a different Riddle on your website every day
- Upgrading the Riddle WordPress plug-in manually
- Set up your Riddle quiz leaderboard
- How do I set up an SMTP server with Riddle?
- Display ads above or below your quiz
- Riddle’s quiz maker cookies and tracking
- Riddle’s Zapier app – help & FAQ
- Can I send quiz takers to a URL based on their responses?
- How can I use Facebook or other tracking pixels?
- Embed your Riddle quiz in Squarespace
- Embed a Riddle quiz on Wix
- Add a WordPress quiz leaderboard to your site
- 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 my quiz width?
- Why won’t my quiz work on my WordPress.com site?
- My quiz embed isn’t working – what should I do?
- Multi-user Team plan – onboarding
- Place your logo above your quiz
- Insert ad tags in your Riddle quizzes
- Set up your Riddle quiz leaderboard
- How can I transfer a quiz to a different team?
- Multi-user: can I invite my colleagues to my account?
- Team roles: admin, editor, and author
- How do team style templates work?
- Can I set a ‘default’ style template for a team?
- Does Riddle offer custom pricing plans?
- Quiz maker pricing (removing VAT)
- 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?
- Creators
- Collect Leads
- Use Regex to validate lead form entries
Use Regex to validate lead form entries
Riddle now support REGEX (regular expressions) with our lead generation and quiz maker.

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.
Why use regex for quiz lead generation?
Sometimes you need your users’ quiz data is in the right format for processing.
Here are some sample use cases:
- Ensure a phone number is in the right format (e.g. ###-###-##### for US contacts)
- 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.

Step by step instructions
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:
((\d)\D)?(\(?(\d\d\d)\)?)?\D(\d\d\d)\D(\d\d\d\d)
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.
And of course, you can always ask us at via support chat or hello@riddle.com – as customer service geeks, we’re super fast at responding.