# Limit characters

**URL:** <https://forum.kirupa.com/t/limit-characters/230619>\
**Category:** flash\
**Created:** [June 27, 2007, 6:03pm UTC](https://forum.kirupa.com/t/limit-characters/230619 "2007-06-27T18:03:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [June 27, 2007, 6:03pm UTC](https://forum.kirupa.com/t/limit-characters/230619/1 "2007-06-27T18:03:48Z")

</div>

Hey,  
Got a little problem here that I’m having some problem with…  
I have a XML searcher thingy made and for the results in it I want to only display, lets say 50 characters to either side of the word that is searched.

I am reading from a XML file and I am using indexOf to ge the current location of the word.

Any idea’s or links to tuts?
