New answers tagged

1 vote

Using a RegEx to create a UUID string

A general rule to follow when it comes to conditionals is to pull out the one thing that's actually different. In your case, it's really just a segment of the URL. The rest remained the same. So ...
user avatar
  • 24.8k
2 votes

PHP local document crawler

It is unfortunate that no answers have been received since this was posted more than 10 years ago. Perhaps you've learned a few things since then and/or the code has changed. Regardless hopefully the ...
user avatar
1 vote

Password policy with regex and zxcvbn

Elevate the data that drives the code to the status of named constants. Among other benefits, this simple change will support any efforts you might make to subject the code to automated testing (...
user avatar
  • 10.1k

Top 50 recent answers are included