I'm trying to retrieve the line number of a given string in the text displayed in the ace editor.

1. Example: searching for "foo"
2. Return: [ 4, 5 ]
3. Condition: Line 4 and 5 in the content of the ace editor contains the "foo" string