I have a multi-line text box. I cannot assume the person typeing text is at the end of it and it could be as many as 500 or so lines. I need to be able to check and see if the four characters before the cursor are spaces, and if they are, delete them all. This needs to happen when the user hits the backspace key. I've captured the backspace but I don't know how to check the previous 4 characters. Anybody have any help?