How to add to array

Hello Team

We are extracting the months from Portal which is extracted in Below Format

JanFebMarAprMayJuneJulAugSepOctNovDec

This needs to be added into an array as comma separated
Jan,Feb,Mar,Apr,May,June,Jul,Aug,Sep,Oct,Nov,Dec

Your suggestions are appreciated

Thanks in advance

1 Like

@NISHITHA

Please try this

Arrayval = System.Text.RegularExpressions.Regex.Replace(str,"(?=[A-Z])",",").Split({","},StringSplitOptions.RemoveEmptyEntries)

image

cheers

2 Likes

Thanks @Anil_G for the Prompt Response.

1 Like

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