www.webdeveloper.com
Results 1 to 4 of 4

Thread: javascript little question

  1. #1
    Join Date
    Sep 2013
    Posts
    3

    Question javascript little question

    hello

    im biginner in javascript
    im asking if i can use ^[A-Za-z]\S*$ in

    document.body.innerHTML = document.body.innerHTML.replace('Test','@');

    if yes then how?

  2. #2
    Join Date
    Sep 2013
    Posts
    3
    any help?

  3. #3
    Join Date
    Jun 2008
    Posts
    106
    You can use a regular expression, yes.

    Code:
    document.body.innerHTML = document.body.innerHTML.replace( /^[A-Za-z]\S*$/ , '@');

  4. #4
    Join Date
    Sep 2013
    Posts
    3
    Quote Originally Posted by tenfold View Post
    You can use a regular expression, yes.

    Code:
    document.body.innerHTML = document.body.innerHTML.replace( /^[A-Za-z]\S*$/ , '@');
    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles