Re: OT: regex pattern problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Craig Tinson wrote:
I have to find all entries in a file which match the following:

(pg. 2)
(pg. 210)
(pg. 211)
(pg. 309)
(pg. 4000)

etc etc

what regex pattern would I use?

As Iain mentioned, it depends entirely on what program you're using, as they all interpret regex slightly differently.


That said, if it is in perl, I'd use this:

\(pg\. \d+\)




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux