Jump to content

phpaliuk

New Members
  • Posts

    2
  • Joined

  • Last visited

phpaliuk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I wrote the CSS minifier myself. It removes whitespace and newlines and comments, but because I don't know how to code a pattern matching for multiple classnames as posted, it removes whitespace from between the class names as well. As mentioned, 'class1.class2' is different to '.class1 .class2'. Is there a way to pattern match text between braces }xxx{ and replace .class1.class2...etc... with the space?
  2. Hi - for a CSS minifier I have, how do I find strings that match a pattern of: }.[anytext].[anytext]{ and put a whitespace inbetween the fullstops, eg:- }.class1.class2{ --> becomes --> }class1. class2{ }.name1.myname2.anothername3{ --> becomes --> }name1. myname2. anothername3{ Many thanks for your help, Alex
×
×
  • 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.