Jump to content

[SOLVED] Line starts with % regex


TehKittyCat

Recommended Posts

Hi, I am trying to write a regex to add a % to the end of a line and then remove it later on. So basically if a line starts with % add a % to the end of the line.

%ifdef DEFINE
  display: none;
%else
  color: blue;
%endif
}

%ifdef DEFINE%
  display: none;
%else%
  color: blue;
%endif%
}

Link to comment
https://forums.phpfreaks.com/topic/173316-solved-line-starts-with-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.