ASP 3 - Removing space in the middle of the text

Asked

Viewed 49 times

0

Next, this text is taken from a pdf, and posted in a textare (fckeditor), but it comes all misaligned.

So for example:

pergunta

a)resposta 1
  b)resposta 1
c)resposta 1
     d)resposta 1
e)resposta 1

I would like to receive this text, misaligned, and display it this way, without the spaces that are left.

pergunta

a)resposta 1
b)resposta 1
c)resposta 1
d)resposta 1
e)resposta 1

Note: I have a function in JQUERY+REGEX that does this, but it doesn’t work in fckeditor, only in the plain textarea, so I thought maybe a function in ASP. It would suit me perfectly, for what I need.

inserir a descrição da imagem aqui

  • Now I think it will work. Do a test: http://ticianawerner.com.br/teste1/teste.asp

  • @dvd already opening with error. line 92, left

  • worked. kkk used regex and more what? How did to find the space?

  • @dvd if I do some ripples will give error, you know how is the user right. It has as the envy of the error to display a message. Type: Properly format the question. With the Asp Error treatment you can do this?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.