I have ini files that have comments in the but in one ini file the comments start with
; Enable the PHP scripting language engine under Apache.
engine = On
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = Off
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
and the other with
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=255
currently find the beginning of the first using regex involves using
^(;).*$\n
I tried to modify this using
^[;#].*$\n
to find either of the two comments but it did not work what would be the correct regex to find comments of either type?
All of your suggestion where very helpful. The additional thing that I need to do was close the application and then reopen it to see the change take effect.
That should work, however you can try the alteration syntax: