Hallo,
I have the following syntax:
@AAAA{tralala10aa,
author = {Some Author},
title = {Some Title},
booktitle = {Some Booktitle},
year = {2010},
month = {March},
booktitle_short = {CC 2010},
conference_url = {http://www.mmmm.com},
projects = {projects}
}
….
I’ve made the following regular expression:
@[A-Z]*[{][a-z0-9]*[,]
but I need the whole text block. How can I do it ?
If the “block” always ends with a lone closing brace, then this
maywill do it:Where
(?ms)sets the expression to “multiline” and “dotall” (so the.+can also match newlines), and the stuff at the end matches a closing brace on a line by itself.The question mark in the middle makes the
.+match non-greedy so it won’t match all blocks up to and including the last block in the file.