View Single Post
Old 01-18-2009, 02:53 PM   #13
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by Jellby View Post
In vim it could be: \[\d\+\]

\[, \]: literal [ and ]
\d: a digit
\+: repeated one or more times.
\d+ is also working (for pagenumbers, for example)

Andy's way also works fine and is fast but can lead to errors (overkill) if you're not conscientious. You really have to be sure that there is nothing else on that line you're looking for ever!

Last edited by mtravellerh; 01-18-2009 at 02:57 PM.
mtravellerh is offline   Reply With Quote