C#C
C#3y ago
SWEETPONY

✅ how to find some common strings in array?

I have following strings:
astra-srv:658712/sys/broker/state/astra-srv:658712_svc_core
astra-srv:658712/sys/broker/state/astra-srv:658712_svc_client_notify
astra-srv:658712/sys/broker/state/astra-srv:658712_svc_mailer
astra-srv:658712/svc

I'd like to return
["astra-srv:658712/sys/broker/state", "astra-srv:658712/svc"]


I think I can't even group these strings
Was this page helpful?