|
|
|
|
|
by umvi
1680 days ago
|
|
Regex is powerful but I've found like 90% of the time I encounter one it would have been far simpler and more readable to use find + substring indexing or string splitting. Imo replacing several nested if statements with a single esoteric regex is not necessarily a win. It depends on if pattern matching is really the best tool for the job. |
|
An endless source of off-by-one errors, not to mention buffer overflows, index out of bounds exceptions, accidental negative indexing.