Thanks, that worked a charm
I've modified it to /\ref{\s*}+(\s.*)$/i in order to get a comment as well, although it gives me the whole paragraph. Is there any way to limit the number of following words to, say, 10?
Thanks,
baptiste
Something like
/\ref{\s*}/
in the Pattern section of the preferences ought to be enough. The double backslash gives a "real" backslash (it's usually used to escape other characters, such as the "\s*" to denote any amount of space between the braces above, or conversely, again as above, to indicate a *literal* brace). Having the "\s*" inside the braces means that if you accidentally leave blank space inside it'll still be flagged.
Cheers, Paul
_____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Baptiste asked...
I've modified it to /\ref{\s*}+(\s.*)$/i in order to get a comment as well, although it gives me the whole paragraph. Is there any way to limit the number of following words to, say, 10
Good point: sorry I'd missed the "Comment" business.
Sure, you can limit the output: if you use, say,
/\ref{\s*}((\s*\w+){0,10})/
you should get *up to* ten words after the empty ref.
Cheers, Paul