Jump to content

regular expression


wdallman

Recommended Posts

I need to make a regular expression that will return valid anything not equal to 'select'.  I'm using it to validate a form that has dropdown boxes that are defaulted on 'select'. If they have chosen anything at all, it will not equal 'select', and is therefore valid.

 

I'm not familiar at all with creating expressions, so my last try looked like...

 

  /(?!select)/

 

Link to comment
https://forums.phpfreaks.com/topic/201525-regular-expression/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.