
In Capture group 1, I expected the result to be at least `123.` followed by '.179-`, not just `179-`.
Why is only `179-` displaying?
My Replace pattern is `\0`.
On Mar 1, 2020, at 4:28 AM, 'anotherhoward' via BBEdit Talk <bbe...@googlegroups.com> wrote:
In the Pattern Playground, I am running this pattern -> (\d{3}[-.]){2}(\d{4})with the data shown below.Here is my input data:123.179-9876123.456-9876123-456-9870126-456-9871257-456--0123-456123450000Three capture groups are shown in the Capture groups box.
<Screen Shot 2020-03-01 at 7.17.44 AM.png>
In Capture group 1, I expected the result to be at least `123.` followed by '.179-`, not just `179-`.
Why is only `179-` displaying?
My Replace pattern is `\0`.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://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 bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/f4f6710d-bb51-4c21-9270-e43b6c9eb2c6%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bbe...@googlegroups.com.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://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 bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/32702e50-f03b-4a76-94a1-6974886c4f0b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/DC6CF50B-B3E8-452D-BC30-2B0033B0C79B%40cumuli.com.
It is a little confusing or unintuitive(*), that the pattern FINDS both instances but only CAPTURES the last one. But once you understand the mechanism it is a lot easier to construct working patterns.