Ondrej, what is reasoning behind mandatory space before priority??? Why it can't be: ;priority=30 but it has to be ; priority=30
A bit of flexibility would be appreciated. :) Following regex will match both ;priority=30 and ; priority=30 priority=$(sed -ne "s/^;[ ]\?priority=\([0-9]\+\)$/\\1/p" $source_ini) The problem I actually faced is that Augeas PHP lens does not allow space(s) at the beginning of comments. In combination with mandatory space after semicolon it makes use of automation tools such as Puppet impossible. ** Patch added: "Has regex that will match a signle space or no space between semicolon and word priority in the second comment" https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1273225/+attachment/4382803/+files/php5-helper.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1273225 Title: php5enmod - priority is not set by argument To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1273225/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs