Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

String Parsing Question

Discussion in 'Scripting' started by marty, Jun 20, 2007.

  1. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    Anyone know how I can find out of one string contains another in Unity Javascript?

    Something like the made-up command "contains" here:

    if ("bigstring" contains "string") { Debug.Log("This will print."); }
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    This might look familiar. ;)

    --Eric
     
  3. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
  4. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    Who is this person calling himself "marty" who asked this very same question a year ago, only to make me look like a fool now for asking it?

    Who?!?

    Thanks, Eric5h5 ;-)
     
  5. jeremyace

    jeremyace

    Joined:
    Oct 12, 2005
    Posts:
    1,661
    I think legal action is warranted.

    -Jeremy
     
  6. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    At the very least.