0

Hi I'm trying to split the format of the date YYYY-MM-DD to seperate variables in yahoo pipes.

I can get the regex working for the year but I'm struggling with getting the month and day.

My regex for year:

(?<=\d{4}).*

Yahoo pipes uses the replace regex I think, so I would need to select the year-(skip)-day to get the month. Any help would be appreciated.

user1281921
  • 161
  • 1
  • 3
  • 12

2 Answers2

0

The regex (\d{4})-(\d{2})-(\d{2}) matches and captures the elements of the date. I'm not sure how you'd use this in Yahoo Pipes, since I've never used it myself, but the regex should help you there.

Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592
0

(?<=\-).*(?=\-) matches the month only.

Jack
  • 5,680
  • 10
  • 49
  • 74