Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » javascript regu... » new line
  • Is this Impossible?

    This has been driving me crazy all day. Is there any way to match newlines or linebreaks in a textarea html element.  I am not talking about when a user adds a line break by hitting enter for example.  I am talking about when the browser automatically returns a newline or wraps the line.  These breaks need to be matched via ...
    Posted to Construction Advice (Forum) by lazukars on June 23, 2007
  • javascript regex that replaces new line with <br />

    I am trying to write a script that updates HTML on the onKeyUp of a textbox of a form. The HTML is basically a preview of what it will look like when the form is submitted and entered into a database. The problem is, I want to replace all new lines with "<br />\n". So when the user is typing and they hit return it should be ...
    Posted to Construction Advice (Forum) by chandlerkent on June 3, 2007