Home: Perl Programming Help: Regular Expressions:
regex expression for multiple line



beecha
Novice

Jan 4, 2018, 6:25 AM


Views: 16542
     regex expression for multiple line

hi all,

i am working on the regex for below mentioned paragraph

war eligible, init =0*DEC0, ev = {1*BIN0,2*DEC3,6*BIN4,
& 5*BIN43,6*DEC32,
& 5*BIN43,7*DEC32}

Always the line starts from WAR i need to take only the values which are in the { } example:1*BIN0,2*DEC3,6*BIN4,5*BIN43,6*DEC32,5*BIN43,7*DEC32

can anyone help me with this


Laurent_R
Veteran / Moderator

Jan 5, 2018, 10:03 AM


Views: 16510
     Re: [beecha] regex expression for multiple line

Please do not post the same question in several sections of this forum.

I am locking this thread. Readers can find the active thread on this subject in the Intermediate section:
http://perlguru.com/gforum.cgi?post=84614;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;;page=unread#unread


(This post was edited by Laurent_R on Jan 5, 2018, 10:23 AM)