D
D
DimDimuch2018-05-22 12:10:07
Perl
DimDimuch, 2018-05-22 12:10:07

How to output a substring after a certain word from character to character?

Tell me please.
you need to use perl in the text file 1.txt to find the word perl and output everything after it from the character " to the character : in another file
, not including these characters

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vaut, 2018-05-22
@vaut

If there is no line break between " and : then something like:

$_=~ /perl\"(.*)?:/ ;
print $1;

D
DimDimuch, 2018-05-22
@DimDimuch

$_~
Output as a syntax error

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question