what I was looking for
\[(?P<author>.*?)\](?P<title>.*?)\(ZAP\.org\)
This works and is what I was originally looking for.
You guys explained it.
All the other solutions worked fine when you remove
the ".pdf" from the end of the regexp, since it is matched
automatically.
Also, I did not understand that regexp match the longest
string possible (by greedy default) but
*cat
still matches
acat
the * does not match the whole string, it backtracks.
Could I please request that they put something more in
the documentation about the automatic matching of extensions
such as .pdf (or is this my fault for not RTFM?)
|