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

Re: Is this Impossible?

  •  06-26-2007, 10:14 PM

    Re: Is this Impossible?

    Sure,

    I am trying to make a textarea that has no scrollbars.  Instead it will read the number of lines on the fly that the user has submitted and expand accordingly.  Right now you can see the beta at http://www.allisonstokke.org/add.htm .  Since the "?<=" does not work in javascript my current regex is (.{1,40}|(\n\r|\r|\n)) .  I am currently working on making this regex more percise.  Obviously, it needs to be way more specific to work more efficiently.  Any thoughts and advice is greatly appreciated.  Also, for some reason, I can not get Susan's first regex (?=\w)((\s|\w){1,10})(?:\s|$) to work.

    Thanks again for any advice,
    Ryan

View Complete Thread