View Single Post
Old 08-29-2015, 07:36 PM   #10
garberw
Junior Member
garberw began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2015
Device: none
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?)
garberw is offline   Reply With Quote