Regular expression - reading only first 4 lines

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
 
Hi Guys,
   I have one problem regarding the regular expression.
  I have to fetch the data (8 chars) from the text which starts after "EFF:" anywhere between 1-4 lines but only the first match. the text can have more than 10 lines. let me know how to restrict the regex for reading upto only 4 lines. (here enter is the end of line) Thanks in advance
Text:
   H      01/05/2006 16:34:11 MUNI/CORP   2  16706 1                            
........................................................... ENT:01/05/06:(2006)
DEAL#: 1: TEXT#:1928906: REMARKS:CUSIP # CHG :   IND:=N  M: <font style="background-color:#ff0000 EFF</font>:05/01/09:(2009)
TARGET:6497168M2: :NEW YORK C: INIT:64971K6F8: :9999999999: EXP:05/01/09:(2009)
CASH:1010.00000:  :A:   STATE:NY:  T.AGENT:M012: INFO: <font style="background-color:#ff0000 EFF</font>:   : MAT:05/01/29:(2029)
RATE:   5.00000:  : : :  1.00000:M:DTC: : PRATE:  0.000000: PRO:12/28/05:(2005)
DESC. 1: NEW YORK CITY TRANSITIONAL FINANCE AUTHORITY                          
DESC. 2: FUTURE TAX SECOND REVENUE BONDS                                       
DESC. 3: SERIES 1999 C  MBIA-IBC
<font style="background-color:#ff0000 EFF</font>:asdwetrt                                              


View the full article
 
Back
Top