# Strip %0A%09%09

**URL:** <https://forum.kirupa.com/t/strip-0a-09-09/117618>\
**Category:** Uncategorized\
**Created:** [July 28, 2004, 10:14pm UTC](https://forum.kirupa.com/t/strip-0a-09-09/117618 "2004-07-28T22:14:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaDeViL](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@DaDeViL](https://forum.kirupa.com/u/DaDeViL)\
**Post date:** [July 28, 2004, 10:14pm UTC](https://forum.kirupa.com/t/strip-0a-09-09/117618/1 "2004-07-28T22:14:57Z")

</div>

hello,  
I need to strip ‘%0A%09%09’ from the end of a string…what should I use to do it? I tried searching for ‘%0A%09%09’ in ‘righthalf%0A%09%09’ but it returned as undefined…do i use it like this? :ear:

```auto
a= a.search("%0A%09%09");

```

Thanks

---

<div class="post-metadata">

**Author:** ![McGiver](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@McGiver](https://forum.kirupa.com/u/McGiver)\
**Post date:** [July 28, 2004, 10:39pm UTC](https://forum.kirupa.com/t/strip-0a-09-09/117618/2 "2004-07-28T22:39:27Z")

</div>

a=“righthalf%0A%09%09”  
//use to convert it into plain text:  
b=unescape(a)  
//use to find out the position where a string appears first in another string:  
b=a.indexOf("%0A%09%09")  
//use to give return the string except %0A%09%09 stuff:  
b=a.substring(0,indexOf("%0A%09%09"))

---

<div class="post-metadata">

**Author:** ![DaDeViL](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@DaDeViL](https://forum.kirupa.com/u/DaDeViL)\
**Post date:** [July 28, 2004, 10:57pm UTC](https://forum.kirupa.com/t/strip-0a-09-09/117618/3 "2004-07-28T22:57:39Z")

</div>

Thanks for the quick reply.

when i try this:

> [@McGiver](#):
>
> b=a.substring(0,indexOf(“%0A%09%09”))

the string i get is the same one i put in (‘righthalf%0A%09%09’)

---

<div class="post-metadata">

**Author:** ![McGiver](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@McGiver](https://forum.kirupa.com/u/McGiver)\
**Post date:** [July 28, 2004, 11:08pm UTC](https://forum.kirupa.com/t/strip-0a-09-09/117618/4 "2004-07-28T23:08:27Z")

</div>

oups, sorry  
of course it’s  
b=a.substring(0,\*\*a.\*\*indexOf("%0A%09%09"))

---

<div class="post-metadata">

**Author:** ![DaDeViL](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@DaDeViL](https://forum.kirupa.com/u/DaDeViL)\
**Post date:** [July 28, 2004, 11:22pm UTC](https://forum.kirupa.com/t/strip-0a-09-09/117618/5 "2004-07-28T23:22:34Z")

</div>

ahh! perfect… i should have that of that doh! lol

Thanks a lot, it works now!
