Using Matches Regex and Skip Logic to include a range of numbers | XM Community
Skip to main content

Using Matches Regex and Skip Logic to include a range of numbers

  • July 5, 2022
  • 2 replies
  • 87 views

Elianna
Forum|alt.badge.img+2

What would the regex code be to only include participants who have the first 3 digits of their area code fall between 820-840? Tried ^8[2-4]/d+$ but that didn't work. Or if there's a more logical way to frame this skip logic question that would be wonderful. Excited to see what you guys think!

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • July 6, 2022

Try this:
^8(?:[2-3][0-9]|40)


Elianna
Forum|alt.badge.img+2
  • Author
  • 1 reply
  • July 7, 2022

Oh wonderful, thanks so much!