All you need to do is add parentheses to specify what you want the replacement
to be. Also, I'm not sure you need the caret ^ unless your pattern will only
appear at the start of a line.
Find: "\(([0-9]{3})\) "
Replace: "\1"
The \1 in the replacement will pull the contents of the first set of
parentheses, just the number.
[fletcher]
> On Dec 29, 2017, at 11:39 AM, Timothy Turner <[email protected]> wrote:
>
> I have a tab serrated file that has text in parenthesis. I need to find all
> the occurrences of text with three numbers in a parenthesis followed by a
> space and replace that with just the numbers and a hyphen
> So I am looking for the string something like this
>
> "^\([0-9]{3}\)\ "
>
> and I need to replace that with just the numerical value stripping out the
> parenthesis.
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or would like to report a problem, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit
> <http://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 would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://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.