Hi,

I am getting some problem to find out text position.
I have textarea what have the following code.

HTML Code:
<textarea id="textId">This is Second Line.hello ' and "helo" & this is normal $it is £found '' and ; round , * ! look me
<helo> ? no £4.00 is the price. "'" is the price which I am Looking and ; round , * !
<helo> ? no £4.00 is the price. "'" and """ allow this is " cut
hello ' and "helo" & this is normal $it is £pound '' and ; round , * ! yes sure
<helo> ? no £4.00 is the price. "'" and """ allow this is " john
</textarea>

<input type="button" value="find" onclick="findText()" />

here is the javascript

Code:
function findText(){
var textarea=$("#textId").val();
textarea=escape(textarea);
textarea=unescape(textarea);

var searchText="is the price. "'" and """ allow this is " cut
hello ' and "helo" & this is normal $it is £pound";

searchText=escape(searchText);
searchText=unescape(searchText);

var index=textarea.indexOf(searchText);
alert(index);

}
Its always give me a -1 I also use the escape and unescape functions to try to search but result is same. Its could not find the position of text. Can any body help me in this matter.