Moin,
Ich hatte ein laufenden Regex nun wurde leider die seite angepasst und ich bekomme es einfach nicht mehr zum laufen.
Eventuell kann mir jemand von euch helfen.
Der Rote bereich ist neu im HTML Script, das script wurde gekürzt
Die grünen bereiche sollen ausgelsen werden.
Vorher wurde das so gemacht
Leider so nicht mehr Lauffähig.
Ich habe dann versucht auf verschiedenste weise auch zum beispiel so, an zu passen aber ich bin mit meinem latein am ende
Da der obige code nicht komplett von mir aleine stammt und meine kenntnisse nur beschränkt sind bitte ich dringend um hilfe
str1 wurde früher ab und zu durch einen . in zwei zahlen aufgeteilt deshalb auch ">(\d+(\.\d+)?)<" das ist nun aber nicht mehr so
Spoiler anzeigen
-->
</style>
<!--[if(gtemso9)|(IE)]>
<styletype="text/css">
table{border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border:0;}
tabletd,tableth{border-collapse:collapse;font-size:1px;line-height:1px;}
.lh{line-height:normal!important;}
.olctatd{padding:0!important;}
.olcta7{padding:0!important;background-color:none!important;background-image:none!important;background:none!important;border:none!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;border-radius:0!important;}
.inpl-not-mailing.olcta7{color:#ffffff!important;font-weight:normal!important;text-decoration:none!important;display:block!important;padding:8px15px!important;background-color:#68266d!important;background-image:url('http://beispielurl.de/templates/dcnews15de/i/btnbg.png')!important;background-repeat:repeat-x!important;-moz-border-radius:2px!important;-webkit-border-radius:2px!important;border-radius:2px!important;}
.oltd2{padding:8px13px;line-height:normal!important;}
.inpl-not-mailing.oltd2{padding:0!important;line-height:normal!important;}
.olbg1{background-color:#68266d;}
.inpl-not-mailing.olbg1{background-color:transparent!important;}
.olb{display:block!important;}
</style>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
</head>
<bodyclass="body">
<divclass="yfix">
<tablecellspacing="0"cellpadding="0"border="0"width="100%"height="100%"bgcolor="#ebf2f8"class="gwfwnobg">
<tr>
<tdwidth="100%"align="center"valign="top">
<tablecellspacing="0"cellpadding="0"border="0"width="460"class="fw">
<tr>
<tdalign="center"class="iph">
<tablecellspacing="0"cellpadding="0"border="0"width="450"bgcolor="#ffffff"class="fw">
<tr>
<td>
<tablecellpadding="0"cellspacing="0"border="0"width="100%">
<tr>
<tdheight="15"class="rh20"><aname="top_of_mail"></a></td>
</tr>
<tr>
<tdalign="left"style="padding:020px;">
<tablecellpadding="0"cellspacing="0"border="0"width="100%">
<tr>
<tdalign="left"valign="top"><tablecellpadding="0"cellspacing="0"border="0"class="sectiongroup_892971067mobile_hiddenfw">
<tr>
<td><tablecellspacing="0"cellpadding="0"border="0"class="fwmobile_hidden">
<tr>
<tdalign="left"class="lhxsmallcom"><fontface="Arial,Helvetica,sans-serif"style="font-size:12px;color:#333333;">BeispielText</font></td>
</tr>
</table></td>
</tr>
</table></td>
<tdwidth="150"align="right"valign="top"class="lhmh"><ahref="http://beispielurl.de/u/gm.php?prm=xJTIsnjsNU_197087664_2422516_373243"target="_blank"style="color:#333333;font-weight:normal;text-decoration:none;"><fontface="Arial,Helvetica,sans-serif"style="font-size:12px;color:#333333;"><u>OnlineVersion</u></font></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<tdheight="15"class="rh15"><imgsrc="http://beispielurl.de/mo/xJTIsnjsNU_197087664_2422516_373243_2341933.gif"width="1"height="15"style="display:block;"></td>
</tr>
<tr>
<tdalign="left">
<tablecellpadding="0"cellspacing="0"border="0"width="100%">
<tr>
<thwidth="20"class="mh"><imgsrc="http://beispielurl.de/img/trans.gif"width="20"height="1"style="display:block;"></th>
<thalign="left"valign="bottom"style="vertical-align:bottom;"class="sectiongroup_892971068is_mobile_hideablefl"><tableborder="0"cellspacing="0"cellpadding="0"width="100%"class="is_image_mobile_hideable">
<tr>
<tdalign="right">
<tablecellpadding="0"cellspacing="0"border="0"class="fw">
<tr>
<tdalign="center"><spanid="section_image_3C"><imgwidth="180"id="section_image_3"src="http://beispielurl.de/custloads/197087664/md_1149221.png"border="0"style="display:block;"class="image"></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<tdheight="28"class="rh10"><imgsrc="http://beispielurl.de/img/trans.gif"width="1"height="20"style="display:block;"></td>
</tr>
</table></th>
<thwidth="15"class="mh"><imgsrc="http://beispielurl.de/img/trans.gif"width="15"height="1"style="display:block;"></th><thalign="left"valign="top"style="vertical-align:top;"class="sectiongroup_892971069is_mobile_hideablefl"><tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><tr>
<tdbgcolor="#ffffff"height="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
<tr>
<tdbgcolor="#f5f5f5">
<tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><tr>
<tdwidth="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="10"height="1"/></td>
<tdclass="rhomptb5"height="43"valign="top">
<tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><trclass="mh">
<tdheight="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(0,0,0);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>BeispielText</b></font></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(104,38,109);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>0690544931</b></font></td>
</tr>
</tbody></table>
</td>
<tdwidth="5"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="5"height="1"/></td>
</tr>
<tr>
<tdcolspan="3"bgcolor="#ffffff"height="1"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="1"/></td>
</tr>
<tr>
<tdwidth="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="10"height="1"/></td>
<tdclass="rhomptb5"height="43"valign="top">
<tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><trclass="mh">
<tdheight="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(0,0,0);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>BeispielText</b></font></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(104,38,109);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>53</b></font></td>
</tr>
</tbody></table>
</td>
<tdwidth="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="10"height="1"/></td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<tdbgcolor="#ffffff"height="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
</tbody></table></th>
</tr>
</table>
</td>
</tr>
<trclass="sectiongroup_892971070is_mobile_hideablegmh">
<tdalign="left">
<tablecellspacing="0"cellpadding="0"border="0"width="100%">
<tr>
<tdheight="1"bgcolor="#d5d5d5"><imgsrc="http://beispielurl.de/img/trans.gif"width="1"height="1"style="display:block;"></td>
</tr>
<tr>
Ich hatte ein laufenden Regex nun wurde leider die seite angepasst und ich bekomme es einfach nicht mehr zum laufen.
Eventuell kann mir jemand von euch helfen.
Der Rote bereich ist neu im HTML Script, das script wurde gekürzt
Die grünen bereiche sollen ausgelsen werden.
Vorher wurde das so gemacht
VB.NET-Quellcode
- Teststring= Teststring.Replace(" ", Nothing)
- Dim str As String = Strings.Split(Strings.Split(Teststring, "Nummer:", -1, CompareMethod.Binary)(1), "<", -1, CompareMethod.Binary)(0)
- Dim str1 As String = Conversions.ToString(RuntimeHelpers.GetObjectValue(Me.match(Teststring, ">(\d+(\.\d+)?)<")))
- Dim str2 As String = String.Concat(New String() { Name, " | Datum: ", Datum, " | Nummer1: ", str, " | Nummer2: ", str1 })
- If (Operators.CompareString(str1, "", False) = 0) Then
- obj = False
- Else
- Dim thread As System.Threading.Thread = New System.Threading.Thread(Sub() Me.Write(str2))
- thread.Start()
- obj = True
- End If
- End If
- Return obj
- End Function
Leider so nicht mehr Lauffähig.
Ich habe dann versucht auf verschiedenste weise auch zum beispiel so, an zu passen aber ich bin mit meinem latein am ende
Da der obige code nicht komplett von mir aleine stammt und meine kenntnisse nur beschränkt sind bitte ich dringend um hilfe
str1 wurde früher ab und zu durch einen . in zwei zahlen aufgeteilt deshalb auch ">(\d+(\.\d+)?)<" das ist nun aber nicht mehr so
-->
</style>
<!--[if(gtemso9)|(IE)]>
<styletype="text/css">
table{border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;border:0;}
tabletd,tableth{border-collapse:collapse;font-size:1px;line-height:1px;}
.lh{line-height:normal!important;}
.olctatd{padding:0!important;}
.olcta7{padding:0!important;background-color:none!important;background-image:none!important;background:none!important;border:none!important;-moz-border-radius:0!important;-webkit-border-radius:0!important;border-radius:0!important;}
.inpl-not-mailing.olcta7{color:#ffffff!important;font-weight:normal!important;text-decoration:none!important;display:block!important;padding:8px15px!important;background-color:#68266d!important;background-image:url('http://beispielurl.de/templates/dcnews15de/i/btnbg.png')!important;background-repeat:repeat-x!important;-moz-border-radius:2px!important;-webkit-border-radius:2px!important;border-radius:2px!important;}
.oltd2{padding:8px13px;line-height:normal!important;}
.inpl-not-mailing.oltd2{padding:0!important;line-height:normal!important;}
.olbg1{background-color:#68266d;}
.inpl-not-mailing.olbg1{background-color:transparent!important;}
.olb{display:block!important;}
</style>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
</head>
<bodyclass="body">
<divclass="yfix">
<tablecellspacing="0"cellpadding="0"border="0"width="100%"height="100%"bgcolor="#ebf2f8"class="gwfwnobg">
<tr>
<tdwidth="100%"align="center"valign="top">
<tablecellspacing="0"cellpadding="0"border="0"width="460"class="fw">
<tr>
<tdalign="center"class="iph">
<tablecellspacing="0"cellpadding="0"border="0"width="450"bgcolor="#ffffff"class="fw">
<tr>
<td>
<tablecellpadding="0"cellspacing="0"border="0"width="100%">
<tr>
<tdheight="15"class="rh20"><aname="top_of_mail"></a></td>
</tr>
<tr>
<tdalign="left"style="padding:020px;">
<tablecellpadding="0"cellspacing="0"border="0"width="100%">
<tr>
<tdalign="left"valign="top"><tablecellpadding="0"cellspacing="0"border="0"class="sectiongroup_892971067mobile_hiddenfw">
<tr>
<td><tablecellspacing="0"cellpadding="0"border="0"class="fwmobile_hidden">
<tr>
<tdalign="left"class="lhxsmallcom"><fontface="Arial,Helvetica,sans-serif"style="font-size:12px;color:#333333;">BeispielText</font></td>
</tr>
</table></td>
</tr>
</table></td>
<tdwidth="150"align="right"valign="top"class="lhmh"><ahref="http://beispielurl.de/u/gm.php?prm=xJTIsnjsNU_197087664_2422516_373243"target="_blank"style="color:#333333;font-weight:normal;text-decoration:none;"><fontface="Arial,Helvetica,sans-serif"style="font-size:12px;color:#333333;"><u>OnlineVersion</u></font></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<tdheight="15"class="rh15"><imgsrc="http://beispielurl.de/mo/xJTIsnjsNU_197087664_2422516_373243_2341933.gif"width="1"height="15"style="display:block;"></td>
</tr>
<tr>
<tdalign="left">
<tablecellpadding="0"cellspacing="0"border="0"width="100%">
<tr>
<thwidth="20"class="mh"><imgsrc="http://beispielurl.de/img/trans.gif"width="20"height="1"style="display:block;"></th>
<thalign="left"valign="bottom"style="vertical-align:bottom;"class="sectiongroup_892971068is_mobile_hideablefl"><tableborder="0"cellspacing="0"cellpadding="0"width="100%"class="is_image_mobile_hideable">
<tr>
<tdalign="right">
<tablecellpadding="0"cellspacing="0"border="0"class="fw">
<tr>
<tdalign="center"><spanid="section_image_3C"><imgwidth="180"id="section_image_3"src="http://beispielurl.de/custloads/197087664/md_1149221.png"border="0"style="display:block;"class="image"></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<tdheight="28"class="rh10"><imgsrc="http://beispielurl.de/img/trans.gif"width="1"height="20"style="display:block;"></td>
</tr>
</table></th>
<thwidth="15"class="mh"><imgsrc="http://beispielurl.de/img/trans.gif"width="15"height="1"style="display:block;"></th><thalign="left"valign="top"style="vertical-align:top;"class="sectiongroup_892971069is_mobile_hideablefl"><tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><tr>
<tdbgcolor="#ffffff"height="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
<tr>
<tdbgcolor="#f5f5f5">
<tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><tr>
<tdwidth="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="10"height="1"/></td>
<tdclass="rhomptb5"height="43"valign="top">
<tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><trclass="mh">
<tdheight="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(0,0,0);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>BeispielText</b></font></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(104,38,109);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>0690544931</b></font></td>
</tr>
</tbody></table>
</td>
<tdwidth="5"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="5"height="1"/></td>
</tr>
<tr>
<tdcolspan="3"bgcolor="#ffffff"height="1"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="1"/></td>
</tr>
<tr>
<tdwidth="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="10"height="1"/></td>
<tdclass="rhomptb5"height="43"valign="top">
<tablewidth="100%"cellspacing="0"cellpadding="0"border="0">
<tbody><trclass="mh">
<tdheight="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(0,0,0);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>BeispielText</b></font></td>
</tr>
<tr>
<tdclass="xsmall"align="left"><fontstyle="font-size:11px;color:rgb(104,38,109);font-weight:normal;"face="Arial,Helvetica,sans-serif"><b>53</b></font></td>
</tr>
</tbody></table>
</td>
<tdwidth="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="10"height="1"/></td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<tdbgcolor="#ffffff"height="10"><imgstyle="display:block;"src="http://beispielurl.de/img/trans.gif"width="1"height="10"/></td>
</tr>
</tbody></table></th>
</tr>
</table>
</td>
</tr>
<trclass="sectiongroup_892971070is_mobile_hideablegmh">
<tdalign="left">
<tablecellspacing="0"cellpadding="0"border="0"width="100%">
<tr>
<tdheight="1"bgcolor="#d5d5d5"><imgsrc="http://beispielurl.de/img/trans.gif"width="1"height="1"style="display:block;"></td>
</tr>
<tr>