How to delete text between marks, such as @abcde@

  • You can use the Finder and wildcards to do it:

    Code
    WPRichText1.Finder.WildCard := '*'; 
    WPRichText1.Finder.ToStart; 
    while WPRichText1.Finder.Next('@*@') do 
    WPRichText1.Finder.FoundText := '@@'; 
    WPRichText1.Refresh;
  • Many thanks by so quick answer..

    This functions very well, but when characters of return exist (#13) does not work!

    The routine also functions when boards(tabellen) in the text exist?

    André Aigneren

    • Offizieller Beitrag

    In this case do it differently:


    BTW.: Please post questions in the wptools forum - not in FAQ