JavaScript Ekspresi reguler ujung string

\n or \r
Infy Loop