Hi, I am having a little trouble here. I am trying to modify this $nohtml code:
Code:
alias nohtml {
  var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, )
  return %x
}

to replace the <br> html tag with either a line feed or a null space or something instead of just removing it cause when I use just the nohtml alias alone, it just removes the <br> tag and the paragraphs all run together instead of having a line between them.

this is what i have so far but it won't replace the <br> tag. can someone tell me what i am doing wrong, and fix my code: :

Code:
alias nohtml2 {
  var %br, %i
  %br = $replace($1-,&lt;br&gt;,$null)
  %i = $regsub(%br,/(^[^&lt;]*&gt;|&lt;[^&gt;]*&gt;|&lt;[^&gt;]*$)/g,$null,%x)
  return %x
}

Any help would be very much appreciated.....thanks


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.