-1

I would need help with a regular expression using stringi::str_extract_all:

txt = "<92.259156585>2018 04 05 (steve): ready to move to production. They have to solve an issue with the authorisation of a standard questionnaire. If they request to move to production during my vacation, please have a look in oneNote.\r\n\r\n2018 04 30 (Steve): Moved to production</92.259156585>"    
str_extract_all(txt, "(?<=<92\\.259156585>)(.+)(?=</92\\.259156585>)")

Basically, I would like to extract the string between "<92.259156585>" and "</92.259156585>" but the function returns:

[[1]]
character(0)

I suspect there is something wrong in the string from "\r\n\r\n2018 04 30" because if I adjust the regular expression as follows, then the text gets extracted up until that point:

str_extract_all(txt, "(?<=<92\\.259156585>)(.+)(?=\r\n\r\n2018 04 30)")
[[1]]
[1] "2018 04 05 (steve): ready to move to production. They have to solve an issue with the authorisation of a standard questionnaire. If they request to move to production during my vacation, please have a look in oneNote."

Thanks,

Corentin

0 Answers0