User Tag List

Results 1 to 8 of 8

Thread: Remove letters and words from a string

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Remove letters and words from a string

    This example is for Panchos:
    I need to be able to remove everything in brackets from a string.

    Eg if my string was "user (dead)" i want to make it "user".
    if my string was "123KingLOLz teh WIN (OWNED)" i want to make it "123KingLOLz teh WIN"




    How could i do that?
    EDIT: IGNORE THIS FILE, updated file attached in my next reply
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    i was thinking of running a fastloop for the length of the string, and adding 1 per loop until it hit a "(", when it would stop the loop and set the string's Value A to the loop's index

    afterwards it would just do a left$() on the string using the stored index value

    but this works too

    EDIT: actually yours looks like it can detect multiple groups of parenthesis, so nevermind

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    It just hit me, I could do this ALOT easier... just get rid of those two extra string objects I made. Dunno why I didn't think of this earlier...

    New updated file attached.
    Attached files Attached files

  4. #4
    No Products Registered

    Join Date
    May 2007
    Location
    Christopia
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    How would you do this with a list and have it so that there can't be any numbers?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    Guitarist, I don't follow.. can you explain a bit more what you want to do?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    For anyone interested, the easiest way to remove strings is to use the Substring Replace 2 Object. Then you simply replace "(dead)" with ""

  7. #7
    No Products Registered

    Join Date
    May 2007
    Location
    Christopia
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    Popcorn,I'm making a music program where you can upload and listen to songs. But some of the songs have numbers at the begging of the name but i don't want this so how would i make them not show the numbers when uploaded?

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Remove letters and words from a string

    You could run a fastloop that would check the first character and delete it until it was no longer a number.

Similar Threads

  1. Changing color for specific words in a string
    By gkinfinity in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st February 2012, 08:29 AM
  2. Number of string letters to a value
    By cajujoe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th August 2011, 10:23 PM
  3. way to search/replace individual letters in string
    By method72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th October 2010, 08:16 PM
  4. String Parser - Get individuall letters
    By LB in forum File Archive
    Replies: 8
    Last Post: 26th April 2008, 03:59 PM
  5. Creating all possible english words from string
    By ace in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th December 2006, 03:48 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
  •