charater length again

Results 1 to 2 of 2

Thread: charater length again

  1. #1
    Al Bear Guest

    Default charater length again

    what I want to do is look if there are any words with a length of two and replace then..<BR><BR>if len(var) = 2 then<BR>str = replace(str,(charterwithlenght2),"")<BR><BR>but as the charter is unknown I am not sure how to do this any ideas.. <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: charater length again

    if u want to replace two letter words out of a string then<BR><BR>&#060;%<BR>str="hello do th in man what is"<BR>response.write str & "<BR>"<BR>x=split(str)<BR>for i=0 to ubound(x)<BR>if len(x(i))=2 then<BR>str=replace(str,x(i),"")<BR>end if<BR>next<BR>response.write str<BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts