Add to one column

Hi

I have input string like=“AaaBbbCccDdcEeeFffGggHhhIiiJjj”

Based on capital letter i need to split and add to one column Names is it possible like that, then yes can any one help

I tried but not getting exactly output

For your out put you can try like this way


steps:

  1. create build data table with one column “Names” and variable = dt
  2. Take for each row activity and pass the this regex expression
    System.Text.RegularExpressions.Regex.Split(str,“(?=[A-Z])”)

inside the loop

take add data row activity and pass the {currentitem} and dt in that

  1. Out Of the loop use the write range workbook activity to write to excel

output : -

image

where str = “YourText”

let me know its working or not for you

@Swathi_Raju

I tried it’s working but in the first of Names column its coming empty row how can i then…?
@Praveen_Mudhiraj

Hi @Swathi_Raju

you can try this then it will remove the that

take assign activity and pass like this

dt =dt.AsEnumerable.Where(Function(x) x(“Names”).ToString<>“”).CopyToDataTable

you can see the output

image
@Swathi_Raju

1 Like

let me know its working or not for you

@Swathi_Raju

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