Jump to content

regex statment


bugcoder

Recommended Posts

well i have asked the question :-\

 

however if i want to elobrate it with code then its like this

 

username  = 'myusername'

password = '12myusername89'

 

return /WhatShouldBeHere/i.test(password); 

 

what regex statement should be used in above line so that it return false in this case because i dont want username value to be part of password anywhere in it.

 

Link to comment
https://forums.phpfreaks.com/topic/205173-regex-statment/#findComment-1073958
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.