Author Topic: How to remove HTML code? (Regular Exression)  (Read 7715 times)

0 Members and 1 Guest are viewing this topic.

Offline Angelika

  • Sr. Member
  • ****
  • Join Date: Feb 2017
  • Posts: 307
  • Karma: -2
    • View Profile
How to remove HTML code? (Regular Exression)
« on: October 25, 2017, 05:30:54 am »
Code: [Select]
<.?*>
Code: [Select]
An attempt to repeat something that can not be repeated in the regular expression - for example a*+


Not work for me. What wrong?

or
Code: [Select]
(?:<style.+?>.+?</style>|<script.+?>.+?</script>|<(?:!|/?[a-‌​zA-Z]+).*?/?>) replace with: "" (It does not remove the complete code)
or
Code: [Select]
<[^>]*>
example:
Code: [Select]
body {



background-color: #C0C0C0;
font-size: 12px;
margin-top: 0px;
padding: 0;
}

div.headline
{


width: 750x;
height: 196px;
font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
color: #C0C0C0;
padding: 2px;
}
div.stopka
{
width: 750px;
height:40px;
margin:0 auto;
font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
color: #C0C0C0;
text-align: right;
text-decoration: none;
vertical-align: middle;
  display:inline;
  float:left;
background-color: #DD8200;
}
div.main_blog
{
width: 500px;
vertical-align: top;
margin-top: 20px;
margin-left: 20px;
margin-bottom: 20px;
}
div.menu_main
{
font-size: 14px;
font-weight: bold;
font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
width: 150px;
padding-top: 20px;
padding-bottom: 10px;
padding-right: 10px;
padding-left: 0px;
margin-left: 0px;
vertical-align: top;
text-align: center;
display:inline;
float:left;
color: #DD8200;
}
div.comment
{
text-align: right;
margin-right: 5px;
padding-right: 5px;
}
a.comment
{
  font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
font-size: 12px;
  color: #E55400;
  text-decoration: none;
}
a.comment:hover
{
text-decoration: none;
color: #000000;
}
a
{
color: #E55400;
text-decoration: none;
}
a:hover
{
text-decoration: none;
color: #000000;
}
.topic
{
font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
text-align: left;
        color: #E55400;
        font-size: 14px;
        font-weight: bold;
}
.date
{
font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
}
p.note
{
font-family: Comic Sans, Zapf Chancery, Coronetscript, cursive;
font-size: 12px;
text-align: justify;
}
img
{
border: 0;
}
div.ksywa
{
font-family: Verdana, Arial, Helvetica, Tahoma, sans-serif;
font-size: 16px;
color: #E55400;
padding: 2px;
margin: 100px auto auto 30px;
font-weight: bold;

}

and log code...

« Last Edit: October 25, 2017, 06:00:55 am by Angelika »