help with a regex please

Michele Venturi dardo82 at gmail.com
Sun Jun 19 21:10:47 UTC 2022


As usual you are asking how to implement your wrong
answer to the right question; ask and you shall receive,
but not what you want, what you need. Also give more
context, context is for kings, live long and prosper... 🧑‍💻

On Sun, Jun 19, 2022, 22:34 Ken Cunningham <ken.cunningham.webuse at gmail.com>
wrote:

> to fix the universal build of some ports, eg jemalloc, I would like to
> strip out the host bits from these text strings, eg convert this:
>
> echo "--prefix=/opt/local --with-jemalloc-prefix=
> --host=aarch64-apple-darwin21.5.0 host_alias=aarch64-apple-darwin21.5.0
> CC=/usr/bin/clang”
>
> to this:
>
> echo "--prefix=/opt/local --with-jemalloc-prefix= CC=/usr/bin/clang”
>
> however, my regex-fu is not strong.
>
> Anyone know the secret reinplace regex that might do that?
>
> thx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20220619/3b861f32/attachment.htm>


More information about the macports-dev mailing list