Ask Your Question
2

Find/replace not recognizing \t for tabs [closed]

asked 2012-03-26 08:56:42 +0200

anonymous user

Anonymous

updated 2015-10-16 02:12:17 +0200

Alex Kemp gravatar image

I'm trying to find and replace all tabs in a document, because I need to remove all indentation from it for formatting purposes. However, when I try to find and replace the tabs with \t in the find box, nothing comes up. There are hundreds of tabs in the document--far too many for me to remove manually. What am I doing wrong?

I'm using the Mac version, in case that information is pertinent.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-16 02:12:30.153856

2 Answers

Sort by » oldest newest most voted
1

answered 2012-03-26 13:14:12 +0200

Pedro gravatar image

You need to click on the More Options button (bottom of Find & Replace dialog) and check the Regular Expressions box since \t is a regex code

edit flag offensive delete link more

Comments

Ah, I wasn't aware of that. It works perfectly now. Thank you very much!

mactutor10 gravatar imagemactutor10 ( 2012-03-27 08:43:42 +0200 )edit
0

answered 2012-05-15 21:16:37 +0200

Aiwe gravatar image

I especially signed up to say thank you, Pedro for this tip. I was frustrated being not able to replace huge amount of empty paragraphs in provided texts. Now after cheking this Regular expression radiobutton it worsk like a charm!

edit flag offensive delete link more

Comments

1

I'm glad that I could help you. Now that you have registered, you can "pay" forward by helping others ;)

Pedro gravatar imagePedro ( 2012-05-17 11:06:51 +0200 )edit

Question Tools

Stats

Asked: 2012-03-26 08:56:42 +0200

Seen: 13,075 times

Last updated: May 15 '12