geb,

In the search, put parentheses around your search pattern, ala (\d\d\d\d), and 
then on the replace, try \t\1. The "\1" is a backreference to the pattern, so 
it'll put that pattern after the tab. There's more in the manual about it.


Hope this helps.


Archie

> On Apr 28, 2019, at 15:03, gebseng <[email protected]> wrote:
> 
> Hi everyone,
> 
> In the Find window, I use grep to search for 4-digit numbers: \d\d\d\d , that 
> works fine.
> Now, in Replace, I don't want to replace the search results with someting 
> else, but rather I want to ADD at tab (\t) BEFORE each occurrence of 
> \d\d\d\d. 
> Is there a way to do that?
> 
> best,
> 
> geb
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to