| From: klanxner | Date Sent: 2010-03-11 02:14:21 |
| Subject: grep escape zero | To: BBEdit Talk |
| Navigation: First Message | Previous Message | Next Message | Last Message | |
Grep. How do I escape the number 0 in a replacement string if \0
is already reserved?
I need to immediately follow \1 with a literal 0 and don't know
how to do that.
Thanks.
Ken
--
Simple Lives Web Design
http://simplelives.com
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@[Protected]
To unsubscribe from this group, send email to
bbedit+unsubscribe@[Protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "support@[Protected]" rather than posting to the group.
| From: Brian Byllesby | Date Sent: 2010-03-11 03:20:13 |
| Subject: Re: grep escape zero | To: BBEdit Talk |
| Navigation: First Message | Previous Message | Next Message | Last Message | |
use \010
ref p.183 of bbedit user manual ( http://pine.barebones.com/manual/BBEdit_9_User_Manual.pdf
) under "In Replacement Patterns":
--
You may use a leading zero; for example, if in your replacement
pattern you want the rst backreference followed by a literal
“1”, you can use “\011”. (If you use “\11”, you will get
the 11th backreference, even if it is empty.)
--
On Mar 11, 2010, at 2:14 AM, klanxner@[Protected] wrote:
> Grep. How do I escape the number 0 in a replacement string if \0 is
> already reserved?
>
> I need to immediately follow \1 with a literal 0 and don't know how
> to do that.
>
> Thanks.
>
> Ken
>
> --
> Simple Lives Web Design
> http://simplelives.com
>
> --
> You received this message because you are subscribed to the "BBEdit
> Talk" discussion group on Google Groups.
> To post to this group, send email to bbedit@[Protected]
> To unsubscribe from this group, send email to
> bbedit+unsubscribe@[Protected]
> For more options, visit this group at
> http://groups.google.com/group/bbedit?hl=en
> If you have a feature request or would like to report a problem,
> please email "support@[Protected]" rather than posting to the group.
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@[Protected]
To unsubscribe from this group, send email to
bbedit+unsubscribe@[Protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "support@[Protected]" rather than posting to the group.
| From: klanxner | Date Sent: 2010-03-11 12:33:00 |
| Subject: Re: grep escape zero | To: BBEdit Talk |
| Navigation: First Message | Previous Message | Next Message | Last Message | |
Much thanks.
Ken
bbyllesby@[Protected] (Brian Byllesby) wrote on 3/11/10 3:20 AM
>use \010
>
>ref p.183 of bbedit user manual (
>http://pine.barebones.com/manual/BBEdit_9_User_Manual.pdf )
>under "In Replacement Patterns":
>
>--
>You may use a leading zero; for example, if in your replacement
>pattern you want the rst backreference followed by a literal
>“1”, you can use “\011”. (If you use “\11”, you
>will get the 11th backreference, even if it is empty.)
>--
>On Mar 11, 2010, at 2:14 AM, klanxner@[Protected] wrote:
>
>>Grep. How do I escape the number 0 in a replacement string if
>>\0 is already reserved?
--
Simple Lives Web Design
http://simplelives.com
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@[Protected]
To unsubscribe from this group, send email to
bbedit+unsubscribe@[Protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem,
please email "support@[Protected]" rather than posting to the group.