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

Ah, I see it now. Usually when I do replace/substitution it's in a larger project so it's not a feature I typically use on the site. Most of my Regex101 use is just figuring out why a regex I wrote isn't executing like I expected.


I normally use the replace/substitution in situations such as: I have list of, say, 1000+ things/rows in a single column. I want to put them in a single line and separate by comma. It is is pretty easy to go there and substitute \n for ", ".

That said, that's also doable in a text editor, but I like that I can visualize the pattern and results more easily.




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

Search: