regex - Regular Expression select up to line break -


i trying select after corp act option no until 2 new lines , carriage returns (up safekeeping account in example)

my reg expression atm extract info (all of after corp act option)

corp act option no\.([\s\s]*) 

sample dara:

corp act reference                  : 007xs0212069115 sender's reference                  : 1212070800330001 function of message                 : new message corp act event                      : interest payment place of safekeeping                : isin                                : xs0212069115 isin/description                    : kfw 4.750 071212 gbp method of interest computation      : a006 ex-date                             : 20121207 record date                         : 20121206 corp act option no.                 : 001 corporate action option code        : cash currency option                     : gbp resulting amt                       : gbp617,5 payment date                        : 20121207 exchange rate                       : gbp/gbp/1, interest rate                       : 4,75  safekeeping account                 : 000000000000 confirmed balance                   : famt/13000, credit/debit ind                    : credit 

how can select until line break above safekeeping account? many thanks.

the new line based on file format, encoding, os,... '\r','\r\n' or '\n'. need match 2 of of those, i.e [\n|\r\n|\r]{2}

'corp act option no.([\s\s]*)[\n|\r\n|\r]{2}' 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -