Hacker News new | ask | show | jobs
by cucumber3732842 21 days ago
It kind of depends on the substring and problem context.

Arbitrary substring in arbitrary text vs extracting embedded plant code from product serial numbers.

As long as you've got a good explanation for what you chose and why you chose it and the pro/con it's probably fine.