Looking for extreme string or snippet finder software

Discussion in 'Programming' started by Philip C. Ngo, Jul 15, 2014.

  1. #1
    suppose I have a folder which has hundreds of .js or .php files ,
    and I'm trying to find this snippet:
    function json_decoder($json)
    { $comment = false; $out = '$x=';

    for ($i=0; $i<strlen($json); $i++)
    {
    if (!$comment)

    How to find this in folder?
     
    Solved! View solution.
    Last edited: Jul 15, 2014
    Philip C. Ngo, Jul 15, 2014 IP
  2. #2
    Just do a text search through all the files? Any good text editor can do this, for instance. Or CLI in Linux, if you're using that.
    For instance, in Sublime (a text editor) you just do a Ctrl+Shift+F to search through all files in a given location (you provide what you're searching for, regex'es accepted, and where you're searching) and it will find all the files that contain that information, and list them in a clickable document (to go to each file).
     
    PoPSiCLe, Jul 15, 2014 IP
  3. Philip C. Ngo

    Philip C. Ngo Member

    Messages:
    85
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #3
    Dear PoPSiCLe I really appreciate your help
    You've made my day.
     
    Philip C. Ngo, Jul 15, 2014 IP