Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most regex libraries don't do determinization (perhaps awk or grep do, but perl doesn't).

You'll want to do better than just "use a trie" - like http://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_string_mat...



Perl will actually use Aho-Corasick string matching for regular expressions like these.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: