User Tag List

Results 1 to 5 of 5

Thread: Delete "http://" from a string

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Apr 2008
    Posts
    241
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Delete "http://" from a string

    Hi, I want to delete a string from a sting. (namely http:// or https:// from a string)

    I had a look at the string parser 2 object but I cant seem to use it other than by with delimiters which isnt what I'm after. I cant seem to get it working with that extension. Anyone help?

    Thanks

  2. #2
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Location
    Australia
    Posts
    168
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    This will remove "http://" or "https://" from a string without any extensions
    removehttp.png

    Sample:
    removehttp.mfa

    It's reliant on there being no spelling errors though

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    It's also reliant on the http:// part being at the beginning of the string.

    You'd need to do a loop through the length of the string to check for http:// being elsewhere in the string and remove it in a similar manner. I'm assuming it's at the beginning but figured I'd mention that just in case it's not.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Christian_Wheel's Avatar
    Join Date
    Mar 2010
    Location
    Los Angeles
    Posts
    344
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the String Parser 2 object and replace "http://" with "".

    Example attached.

    StringParser2Replacehttp.mfa

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Apr 2008
    Posts
    241
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Great. Thanks everyone for your help!

Similar Threads

  1. Replies: 6
    Last Post: 18th August 2015, 02:23 AM
  2. "Delete created backdrops at" causes crash
    By FlipSwitchX in forum Android Export Module 2.5
    Replies: 1
    Last Post: 15th June 2015, 10:29 PM
  3. Set edit box text to string$("string object") causes long delay
    By MJK in forum XNA Export Module Version 2.0
    Replies: 4
    Last Post: 22nd August 2012, 02:58 PM
  4. Mochi Social return "null" string...
    By Orelbe in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 24th July 2011, 04:51 PM
  5. delete "old" files automatically
    By delta in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2008, 03:11 PM

Posting Permissions

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