(How many isn't even an issue unless you're using /g. It's just 1 or 0 — it replaced something or it didn't.)if (s/foo/bar/) { ... } else { ... }
In reply to Re^4: Stupid mistakes I repeatedly make
by Roy Johnson
in thread Stupid mistakes I repeatedly make
by brian_d_foy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |