Hi,
I am trying to perform a simple text to column operation but using fixed width instead of delimiters. My column is in the format DDMMMYYYY (e.g. 23JUL1907) and I am trying to extract the year.
My understanding is that I should actually be using the regex tool, but I am struggling to understand its syntax.
Any help would be greatly appreciated.
Many thanks,
Val
Solved! Go to Solution.
Great, thanks!
I'm trying to do the same thing, but i don't want to leave off any part of the field. So, for example, if one of mine is 20180109, I need to have a separate column for year, month and day.
I've been trying the RegEx tool with parse but I don't know how to construct the expression - and I have looked at multiple other places in the community and if it is answered somewhere I don't see it.
This is what I have, but when I run it, my Month Day and Year fields are Null.
Any thoughts as to how I should proceed?
Thanks!
I'm having the same issue. Did you figure out what was wrong?
I did not figure out how to do it. I found a different angle to approach that worked much better. What's your specific issue? My other approach may or may not be helpful to you, but if it is, I'd be happy to help.
You are correctly parsing the three columns you want as an output. You just need to adjust the regex formula inside each set of parentheses.
The expression you're looking for is (\d{4})(\d{2})(\d{2}). That will parse out what you need I think.