Theoretically speaking, this would probably only work with a two-line string, correct? If so, is there a way to do it generically, i.e. where you don't know how many newlines may be in the string nor on which line the desired match may exist, similar to //s in Perl?
Justin -----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of nwat...@symcor.com Sent: Wednesday, February 17, 2010 1:41 PM To: Mark Burgess Cc: Lebel, Marco; help-cfengine@cfengine.org Subject: Re: regcmp help Mark Burgess <mark.burg...@iu.hio.no> wrote on 2010-02-17 15:37:36: > > .* only matches up to the newline, so you'll have to say > > .*REGEX.*\n.* That works. It's a bit painful compared with m// so I still wish for that :) Still thanks for the clarification and your patience with my stubbornness. Sincerely, -- Neil Watson 416-673-3465 This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine