PDF attachment content and REGEX handy usages
Hi,
I need to explore PDF attachment content in advance search. So far I've been using Regex capabilities very few and my expectation is that it is quite powerful.
a) I would appreciate any tip or suggestion regarding handy Regex operators/syntax/usages to mining data in a literature review process using Zotero.
b) To search exact expressions using Regex, are the "quotation marks" necessary?
Many thanks,
Cadu
I need to explore PDF attachment content in advance search. So far I've been using Regex capabilities very few and my expectation is that it is quite powerful.
a) I would appreciate any tip or suggestion regarding handy Regex operators/syntax/usages to mining data in a literature review process using Zotero.
b) To search exact expressions using Regex, are the "quotation marks" necessary?
Many thanks,
Cadu
word1(?:\s+\w+){0,N}\s+word2
E.g., to query for "secondary data" or "secondary analysis of data", use
secondary(?:\s+\w+){0,2}\s+data
;-)
the cheat sheet is good: http://www.cheatography.com/davechild/cheat-sheets/regular-expressions/
b) in addition to what aurimas says - regexes are literal by default, i.e.
/find this sentence/ (you don't need the slashes in Zotero) will only return true when you have exactly "find this sentence" in the document.