Guest User

Untitled

a guest
May 27th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <?php
  2. $re = '/(?:^[^{};]+{s*}n?|^h*(?=[^{;]*{)|^h*S+s*:[h'"]*;n|^h*n)/m';
  3. $str = '
  4. .images-3 {
  5. margin: 0px 0px 15px 0px;
  6. padding: 0px;
  7. background-color: ;
  8.  
  9. width: 100%;
  10. }
  11.  
  12. .images-3 .image-group {
  13. margin-left: -2px;
  14. margin-right: -2px;
  15. }
  16.  
  17. .images-3 .image {
  18. width: calc((100% / 3) - 4px);
  19. margin: 2px;
  20. }
  21.  
  22. .images-3 img {
  23. object-fit: cover;
  24. height: 300px;
  25. width: 100%;
  26. margin-left: auto;
  27. margin-right: auto;
  28. border: 0px solid transparent;
  29. border-radius: 0px;
  30. }
  31.  
  32.  
  33. .text-4 {
  34. font-size: ;
  35. margin: 0px 0px 15px 0px; padding: 0px; width: 100%;
  36. }
  37.  
  38.  
  39. .headline-5 {
  40. margin: 0px 0px 15px 0px; padding: 0px;
  41. font-family: "";
  42. }
  43.  
  44. .text-4:hover {
  45.  
  46. }
  47. ';
  48. $subst = '';
  49.  
  50. $result = preg_replace($re, $subst, $str);
  51.  
  52. echo "The result of the substitution is ".$result;
  53. ?>
  54.  
  55. <?php
  56. $re = '/(?:^[^{};]+{s*}n?|^h*(?=[^{;]*{)|^h*S+s*:[h'"]*;n|^h*n)/m';
  57. $str = '
  58. .images-3 {
  59. margin: 0px 0px 15px 0px;
  60. padding: 0px;
  61. background-color: ;
  62.  
  63. width: 100%;
  64. }
  65.  
  66. .images-3 .image-group {
  67. margin-left: -2px;
  68. margin-right: -2px;
  69. }
  70.  
  71. .images-3 .image {
  72. width: calc((100% / 3) - 4px);
  73. margin: 2px;
  74. }
  75.  
  76. .images-3 img {
  77. object-fit: cover;
  78. height: 300px;
  79. width: 100%;
  80. margin-left: auto;
  81. margin-right: auto;
  82. border: 0px solid transparent;
  83. border-radius: 0px;
  84. }
  85.  
  86.  
  87. .text-4 {
  88. font-size: ;
  89. margin: 0px 0px 15px 0px; padding: 0px; width: 100%;
  90. }
  91.  
  92.  
  93. .headline-5 {
  94. margin: 0px 0px 15px 0px; padding: 0px;
  95. font-family: "";
  96. }
  97.  
  98. .text-4:hover {
  99.  
  100. }
  101. ';
  102. $subst = '';
  103.  
  104. $result = preg_replace($re, $subst, $str);
  105.  
  106. echo "The result of the substitution is ".$result;
  107. ?>
Add Comment
Please, Sign In to add comment