|
|
|
|
|
by bazoom42
420 days ago
|
|
> I tend to prefer to write out the procedural code, even if it is (much) longer in terms of lines. This might work for you, but in general the amount of bugs is proportional to the amount of code. The regex engine is alredy throughly tested by someone else while a custom implementation in procedural code will probably have bugs and be a lot more work to maintain if the pattern changes. |
|
If you wanted to look for cases which serve as an exception to this rule, code relying on regexes would be an excellent place to start.