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

Quick FYI. It's difficult to filter URIs with regex because they are context free grammars and belong to a larger language than regular expressions.

Recursive descent parsers are the way to go like uri objects in most languages.

Ex. URL url = URL.fromString(inputString); url.getScheme;



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

Search: