I was testing a variable against a regex so it had to contain nothing but numbers and a single decimal point. I had no clue how to do this so someone told me to use while($interest !~ /^-?\.?\d+(?:\.\d+)?$/) { Can someone please explain to me what each of those things are doing? This totally confuses me.
Thanks everyone!
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
In reply to What does this regex do? by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |