Good morning, I have a question, using Webscraping, I extract an information in string format like this:
"Issued May2018No expiration date"
what I want is to split this string into 2 strings by using regular expression, my idea is: whenever you find 4 digits followed by "No", I want to create the following string:
"Issued May2018 - No expiration date".
In this way, I'm able to use the method "split" applied to "-" in a way that I achieve two strings:
- Issued May2018
- No expiration date
I was thinking using regex with
\d\d\d\dNo
and it should be able to recognise 2018No, but I don't know how to proceed in order that I can replace it with
May2018 - No expiration date
and set the floor for using the split function
Any suggestions? other approaches are well suggested