I have text in the form:
Name=Value1
Name=Value2
Name=Value3
Using Perl, I would like to match /Name=(.+?)/
every time it appears and extract the (.+?) and push it onto an array. I know I can use $1
to get the text I need and I can use =~
to perform the regex matching, but I don't know how to get all matches.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…