Re:RegExr: Learn, Build and Test Regex
by Glant on Thursday January 27, 2022 @04:42PM
(#30107151)
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.
[ Parent
| on HN ]
Re:RegExr: Learn, Build and Test Regex
by ask_b123 on Thursday February 10, 2022 @01:28PM
(#30290413)
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.