Dear all,
I have a question about regular expressions. First of all, I hope I am not cross-posting, but after searching I could not directly find a similar topic.
First some background. I am a PhD student (marine social sciences) and I am using MAXQDA Plus 2020 for coding interview transcripts, systematic literature review and policy analysis. So far, my experiences with MAXQDA have been very positive (an intuitive interface and many analysis functions).
Now, for the policy analysis what I am actually interested in are finding descriptions of interactions between stakeholders. More specifically, exchanges of knowledge in the process of decision-making. So far, I have found some expressions that are very often associated with some kind of interactions between two or more stakeholders. And I wondered: would it be possible to use regular expressions to easily identify those and autocode them?
As I have zero experience with regular expressions, I had a try with ChatGPT, specifying they should be Perl-compatible (PCRE). However, after generating a couple of regular expressions, when trying them out in MAXQDA, using lexical search, it would not return any results in the documents.
What could be the cause for this? Perhaps useful, here is an example of one of the regular expressions I have tried out:
`\bprepare(?:s|d|ing)?(?:\b(?:\w+\s+)?\w+\b)?\bfor\b(?:\s+\w+)?`
My hope was that it may allow to, for example, more easily identify instances where a stakeholder must prepare a document for an authority (e.g. to obtain a permit). My understanding is that the regular expression also looks for cases where word(s) would stand between "prepare" and "for" and following "for".
Is it the syntax that may not be correct after all? Or are there certain limitations to using regular expressions that I did not find out yet?
Thanks a lot for your advice
PS: I think MaxDictio with its "dictionary" function and "keyword in context" search can offer an interesting alternative for my needs.
Version: MAXQDA 2020
System: Windows 10