A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to remove part of a string?

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    54

    How to remove part of a string?

    I have an input field, and would like to remove ".com" ".net" ".org" from any strings entered. (basically anything including and following a period)

    What's the best way to go about this?

    Thanks in advance!

  2. #2
    Senior Kid
    Join Date
    Jan 2002
    Location
    I am right behind ya
    Posts
    274
    I would split(".") then join without the last array element, which is the extension part.
    -The Dancin kidd

  3. #3
    Member
    Join Date
    Jan 2001
    Posts
    54
    Of course! Will give it a shot - thanks again.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center