Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Regular Expressions
  4. Is there a way to come up with a regular expression for this?

Is there a way to come up with a regular expression for this?

Scheduled Pinned Locked Moved Regular Expressions
questionregextutorial
2 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fame_crane
    wrote on last edited by
    #1

    I am trying to create a question on google forms with the following conditions but having a hard time figuring out how to create a regular expression for this What is your member ID? - Must be an 8 digit number - cannot be repeating numbers like 00000000 or 11111111 etc - cannot be 12345678 Is there a way to come up with a regular expression to achieve this?

    L 1 Reply Last reply
    0
    • F fame_crane

      I am trying to create a question on google forms with the following conditions but having a hard time figuring out how to create a regular expression for this What is your member ID? - Must be an 8 digit number - cannot be repeating numbers like 00000000 or 11111111 etc - cannot be 12345678 Is there a way to come up with a regular expression to achieve this?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I think you want to do some "string exclusions" (e.g. "12345678", "00000000", ... "99999999"); ending with an inclusion (0-9). [https://stackoverflow.com/questions/2078915/a-regular-expression-to-exclude-a-word-string\](https://stackoverflow.com/questions/2078915/a-regular-expression-to-exclude-a-word-string)

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups