Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $re = '/(?:^[^{};]+{s*}n?|^h*(?=[^{;]*{)|^h*S+s*:[h'"]*;n|^h*n)/m';
- $str = '
- .images-3 {
- margin: 0px 0px 15px 0px;
- padding: 0px;
- background-color: ;
- width: 100%;
- }
- .images-3 .image-group {
- margin-left: -2px;
- margin-right: -2px;
- }
- .images-3 .image {
- width: calc((100% / 3) - 4px);
- margin: 2px;
- }
- .images-3 img {
- object-fit: cover;
- height: 300px;
- width: 100%;
- margin-left: auto;
- margin-right: auto;
- border: 0px solid transparent;
- border-radius: 0px;
- }
- .text-4 {
- font-size: ;
- margin: 0px 0px 15px 0px; padding: 0px; width: 100%;
- }
- .headline-5 {
- margin: 0px 0px 15px 0px; padding: 0px;
- font-family: "";
- }
- .text-4:hover {
- }
- ';
- $subst = '';
- $result = preg_replace($re, $subst, $str);
- echo "The result of the substitution is ".$result;
- ?>
- <?php
- $re = '/(?:^[^{};]+{s*}n?|^h*(?=[^{;]*{)|^h*S+s*:[h'"]*;n|^h*n)/m';
- $str = '
- .images-3 {
- margin: 0px 0px 15px 0px;
- padding: 0px;
- background-color: ;
- width: 100%;
- }
- .images-3 .image-group {
- margin-left: -2px;
- margin-right: -2px;
- }
- .images-3 .image {
- width: calc((100% / 3) - 4px);
- margin: 2px;
- }
- .images-3 img {
- object-fit: cover;
- height: 300px;
- width: 100%;
- margin-left: auto;
- margin-right: auto;
- border: 0px solid transparent;
- border-radius: 0px;
- }
- .text-4 {
- font-size: ;
- margin: 0px 0px 15px 0px; padding: 0px; width: 100%;
- }
- .headline-5 {
- margin: 0px 0px 15px 0px; padding: 0px;
- font-family: "";
- }
- .text-4:hover {
- }
- ';
- $subst = '';
- $result = preg_replace($re, $subst, $str);
- echo "The result of the substitution is ".$result;
- ?>
Add Comment
Please, Sign In to add comment