1
$resultado = "spawn needle /var/www/html/trabalho/arquivo/emboss/needle/alvos.txt /var/www/html/trabalho/arquivo/emboss/needle/modelos.txt Needleman-Wunsch global alignment of two sequences Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Warning: Unknown swissprot line type ' ' Gap opening penalty [10.0]: 10.0 Gap extension penalty [0.5]: 0.5 Output alignment [hba_human.needle]:"
How to take php part of my string where I have [hba_human.Needle] where hba_human would be the file name, so how can I get what is between the [ ] and has extension .Needle ?