I need to get separate string value with regex

Input : Sep 8, 2024 11:00 PM - Sep 11, 2024 11:00 PM

Output like:
Sep 8, 2024 11:00 PM

Sep 11, 2024 11:00 PM

Thanks
Shaik

Hi @shaik.muktharvalli1

Input.Split(β€œ-”)(0)
Input.Split(β€œ-”)(1)

Regards,

@shaik.muktharvalli1

The image shows the output window of a debugging or execution environment, displaying the start and end times of "BlankProcess23" and indicating no errors, warnings, or issues. (Captioned by AI)

Regards,

can you show me the variable types please

Thanks
Shaik

can you give regular expression for those outputs

@shaik.muktharvalli1

String

Regards,

but I am getting error please help

@shaik.muktharvalli1

Can you show us the code and error

Regards,

@shaik.muktharvalli1

Try this

Input.Split("-"c)(0).Trim
Input.Split("-"c)(1).Trim

Regards,

it’s working fine now

thanks you @lrtetala