# Find a String in a String chaine

**URL:** <https://forum.kirupa.com/t/find-a-string-in-a-string-chaine/277378>\
**Category:** flash\
**Created:** [December 11, 2008, 12:05pm UTC](https://forum.kirupa.com/t/find-a-string-in-a-string-chaine/277378 "2008-12-11T12:05:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPGarcia](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@JPGarcia](https://forum.kirupa.com/u/JPGarcia)\
**Post date:** [December 11, 2008, 12:05pm UTC](https://forum.kirupa.com/t/find-a-string-in-a-string-chaine/277378/1 "2008-12-11T12:05:32Z")

</div>

Hi, I need a function that detects if a string was found inside another string:

here’s an example:  
string1 = “ABC”  
string2 = “FGABCJHG”

in this case, the function would return true…  
any ideas on how to make this? i m being lazy, i could try to do it by myself but sometimes this kind of functions were already made by someone and they are in internet or whatever.

thanks!
