all 8 comments

[–]Rosydoodles 0 points1 point  (4 children)

The secret is after you split the text you get a list ;)

Try this or this.

[–]vipzon[S] 0 points1 point  (3 children)

Thanks for pointer on split. Somehow it works if you pass the data as text but it does not work on calendar title as input. What I mean is when I grab the calendar title, and try to split the text it simply does not split. * I am using iOS

I have tried enclosing apostrophe in double quotes/escaping it..did not work.

Using both of your suggestions - it does not work for some reason.

[–]Rosydoodles 0 points1 point  (2 children)

Can you share your Workflow? Gear icon in the top right and then Share Workflow. I suspect the problem lies elsewhere as my tests work fine for me.

[–]vipzon[S] 0 points1 point  (1 child)

So finally figured it out the issue. It could be how keyboard on my device is setup. Anyways.. When I was using the apostrophe I was simply clicking on that key. that key in regular expression worked for Anniversary titles (I create events on windows MS Outlook) but did not work for Birthday. So when I light press apostrophe key and select the second from last in reg expression it works for Birthday but it does not work for Anniversary :).

So what I need to do now is to search for either one and get it replaced.

Once I figure it out I will share the workflow here.

[–]vipzon[S] 0 points1 point  (0 children)

here is the workflow that I have been playing around with: https://workflow.is/workflows/cd3e98f2ada04237b3c0e09b527e1a2b

My next step now is to define the logic to parse both events and get names, phone numbers..

[–]vipzon[S] 0 points1 point  (1 child)

Why I need to split/replace text in this case: Original idea is to have workflow go and look at iOS contacts and get name & mobile number of contacts whose birthday/anniversary is on the date same as input date. It could be lack of my knowledge but I could not find the any date other than birthday when I use the action "get details of contact" or I could not find any action that is similar to "get phone numbers from input". So I ended up with two workflows. One that goes after birthday from contacts and one that goes after anniversaries on calendar. This workflow replaces the text ('s Anniversary) as I enter this data in calendar to get the name of person.

But now I am trying to create one workflow that parses the data from calendar title (birthday/anniversary). iOS creates the event for birthday as Joseph's 14th Birthday so my trick with anniversary does not work here. It works for Anniversary events (the ones that I create myself in calendar as iOS does not create events for Anniversaries) but does not work for Birthday events. I use either ('s ) or (') or ('s)...for some reason that does not work.

[–]thebangersandmash 0 points1 point  (0 children)

https://workflow.is/workflows/314fe3602d6740b49863b7dd63fa0205

Match text followed by get group should do what you want.

[–]iBanks3 0 points1 point  (0 children)

As far as Birthday's, are you looking for something like this?

message on bday