Einzelnen Beitrag anzeigen

Benutzerbild von mirage228
mirage228

Registriert seit: 23. Mär 2003
Ort: Münster
3.750 Beiträge
 
Delphi 2010 Professional
 
#6

Re: RegExp + am anfang eines wortes

  Alt 3. Aug 2007, 11:35
Zitat von Gruber_Hans_12345:
nur mich hätte es interessiert, warum das \b bei einem + nicht funktioniert ...
Das + muss ja auch zuerst und dann die Word-Boundary-Assertion (\b)

\+\b Habs mal probiert, matched bei einem + vor einem Wort (aber auch Zahlen!), und ansonsten nicht

Edit: Beachte noch den Hinweis zu \b:
Zitat:
A word boundary is a position in the subject string where the current character and the previous character do not both match \w or \W (i.e. one matches \w and the other matches \W), or the start or end of the string if the first or last character matches \w, respectively.
mfG
mirage228
David F.

May the source be with you, stranger.
PHP Inspection Unit (Delphi-Unit zum Analysieren von PHP Code)
  Mit Zitat antworten Zitat