E
E
elisey4742018-02-13 21:27:18
linux
elisey474, 2018-02-13 21:27:18

Is there an analogue of grep in JS (Node.JS)?

Let's say I wrote several lines to a variable:

Some super
Very cool12er
Text

I want to filter and write to another variable only a string Super cool, filtering the text by its presence in the string 12e. How to do this in JS? The grep console utility would do this viagrep "12e"

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question