Am 19.12.2011 um 21:08 schrieb Stefan Mettenbrink:

> Ich finde das für meinen Fall recht aufwändig. Gibt es das nichts
> einfacheres?


Es geht ja auch so:

  dim text as string = "Hallo, In Würzburg gibt es hübsche Mädchen. Sowas aber 
auch!"
  dim suchtext as string = "In Würzburg gibt es hübsche Mädchen."
  
  dim r as new RegExMBS
  
  if r.Compile(suchtext) then
    if r.Execute(text, 0)>0 then
      // gefunden
      MsgBox r.Substring(0)
    end if
  end if
  


Gruß
Christian

-- 
Real World 2012, 24./25. Mai 2012 in Orlando, Florida, USA.

Weitere Informationen und Anmeldung auf: 
http://www.realsoftware.com/community/realworld.php








Antwort per Email an