[augeas-devel] [Augeas] #208: regexp doesn't work if the string has newlines

Augeas trac at fedorahosted.org
Thu Jun 23 12:18:40 UTC 2011


#208: regexp doesn't work if the string has newlines
----------------------+-----------------------------------------------------
 Reporter:  rgevaert  |       Owner:  lutter
     Type:  defect    |      Status:  new   
 Priority:  major     |   Milestone:  next  
Component:  Augeas    |     Version:  0.8.0 
 Keywords:            |  
----------------------+-----------------------------------------------------
 Hello,

 I'm trying to match a comment string that has new lines in it:

 print /files/etc/config.xml.template/config/modules/#comment[ . =~
 regexp('.*BreakoutModule.*')]

 Doesn't match the third comment in the attached file.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/208>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list