Regular expression to find word at the beginning of each line and read entire line.

  • Thread starter Thread starter malauddin
  • Start date Start date
M

malauddin

Hi all,

I am looking for a regular expression to find a word at the beginning
of a line and then read the entire line. From the example below, I want
to find the word "FN" and then read entire line "FN:Robert Henry".
 
I am looking for a regular expression to find a word at the beginning
of a line and then read the entire line. From the example below, I want
to find the word "FN" and then read entire line "FN:Robert Henry".

------------------
BEGIN:VCARD
FN:Robert Henry
EMAIL;WORK;PREF:mycompany.com
TEL;WORK:office
------------------

^fn\b.*

be sure to set the ignorecase and multiline options.
 
Back
Top