How can i split this whole string into separate names for spaces having more than one

VIJAY RURAL COLLEGE 2022-2023 VIJAY RURAL COLLEGE 2021-2022 VIJAY RURAL COLLEGE 2020-2021 VIJAY RURAL COLLEGE 2019-2020 VIJAY RURAL COLLEGE 2018-2019 VIJAY RURAL COLLEGE 2017-2018 VIJAY RURAL COLLEGE 2016-2017 VIJAY RURAL COLLEGE 2015-2016 VIJAY RURAL COLLEGE 2014-2015

Hi @Rajesh_Pamu

Welcome to our community
can you please elaborate you requirement, also provide an expected output

Regards

Hi,

How about the following?

arrStr = System.Text.RegularExpressions.Regex.Split(yourString,"(?<=-\d+)\s")

Sample20230307-5L.zip (2.3 KB)

Regards,

1 Like

Thanks a lot …!!!

2 Likes

Thanks a lot it worked…!!!

Hi @Rajesh_Pamu, welcome to the community! Can you please mark it as solution which is works for you, helps other members as well. Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.