'Mark words in notepad++ including dash (-)

I would like to mark in Notepad++ the sql scripts in a text log. The sql files have this format in the text:

AAAAAAAA.BBBBBBBBBBB.sql

So what I execute is this sentence in search menu:

\w*.sql

As I should get BBBBBBBBBBB.sql. The point is that in some script names there are dashes (-), and when that happens I dont get the whole name, but just the end after the last dash.

For example, in:

AAAAAAAA.BBBBB-CCCCCCC.sql

I would like to get BBBBB-CCCCCCC.sql, but I just get CCCCCCC.sql

Is there any possible formula to get them?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source