Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Regular Expressions in Nano
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bpoi
n00b
n00b


Joined: 14 Jan 2003
Posts: 23

PostPosted: Sat Jul 24, 2004 6:14 pm    Post subject: Regular Expressions in Nano Reply with quote

Hi,

I have a very basic question about regular expressions in nano that's not in the nano user's guide (at the GNU website), and the help-nano email list looks basically dormant.

How do you use them when doing replacements?

For example, suppose I have some code where "matrix ..." appears left-justified, and I want to replace it with two tabs and then the "matrix ..."

I've figured out that with regular expressions enabled, I can use a regular expression for the search part by typing in
Code:
^matrix
When prompted for replacement text, I type in
Code:
\t\tmatrix
thinking the \t's should be interpretted as tabs, since I'm in regex mode. But they don't.

Anyone know how to use regex with replacement in nano????? :?

P.S. Yes, I do know just enough vim to do this, but I much prefer nano.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum