From: Kurt B. <kk...@br...> - 2005-03-30 10:01:13
|
on 3/30/05 1:39 AM, Kurt Bigler <kk...@br...> wrote: > on 3/30/05 12:37 AM, wsy <ws...@me...> wrote: > >> match (:: :desired_header:) \ >> /(?:^|\n)(:*:header_name:: ([^\n]|\n[[:space:]])*)/ >> output /-->:*:desired_header:<--\n/ >> exit >> } >> output /No way!\n/ >> } >> >> and this works fine. >> >> See if this code here works for you. If it does, cut/paste the >> regex (and regex alone) into your code. > > It works. It also has an extra set of parens in the regex that were not > present in your original post. Look at the quoted stuff above. However, it doesn't address the case-insensitivity issue that others have brought up, nor the fact that the space after the colon is optional. You can decide about spaces before the colon. -Kurt |