Regex patter Problem

  • VB.NET

Es gibt 1 Antwort in diesem Thema. Der letzte Beitrag () ist von Confix.npage.de.

    Regex patter Problem

    Guten Tag,
    Ich habe folgenden patter und ich möchte damit ein stück eines quelltextes auslesen, könnte mir da jemand helfen?
    Mein Patter:

    VB.NET-Quellcode

    1. \<\meta name=\""\keywords\""\ content=\""\(?string)\\""\\>

    Fehler:
    Spoiler anzeigen
    System.ArgumentException wurde nicht behandelt.
    Message=""\<\meta name=\"\keywords\"\ content=\"\(?string)\\"\\>" wird analysiert - Unbekannte Escape-Zeichenfolge \m."
    Source="System"
    StackTrace:
    bei System.Text.RegularExpressions.RegexParser.ScanCharEscape()
    bei System.Text.RegularExpressions.RegexParser.ScanBasicBackslash()
    bei System.Text.RegularExpressions.RegexParser.ScanBackslash()
    bei System.Text.RegularExpressions.RegexParser.ScanRegex()
    bei System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
    bei System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
    bei System.Text.RegularExpressions.Regex..ctor(String pattern)
    bei Mediashare.NET.Form1.Button1_Click(Object sender, EventArgs e) in C:\Users\Mike\AppData\Local\Temporary Projects\Mediashare.NET\Form1.vb:Zeile 14.
    bei System.Windows.Forms.Control.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    bei System.Windows.Forms.Control.WndProc(Message& m)
    bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
    bei System.Windows.Forms.Button.WndProc(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    bei System.Windows.Forms.Application.Run(ApplicationContext context)
    bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    bei Mediashare.NET.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
    bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ThreadHelper.ThreadStart()
    InnerException:


    Bin zu doof für Regex...^^
    Mfg
    Confix :rolleyes: