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

a correction would be helpful.

   /x?/ one or none x
   /x+/ one or more x
   /x*/ none or more x
with variable operators it's more complicated. In /.+/ the operator is repeated, not the first match as with /(.)\1*/

Also, there are extensions in various implementations that are not in fact a regular, so no finite automata.



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

Search: