Jump to content

Regular expressions in .TP2


Lu_

Recommended Posts

I am completely in the dark here. Say, how do I extract all .bam files whose names start with an 'I?' In MS DOS the whole bunch is described as I*.bam. What's the respective COPY_EXISTING command?

Link to comment

Thanx, Ardanis. And if I wanted to extract all .bam files at once, then?

 

edit> I mean ALL, no matter what the name is

~.+\.bam~

 

. any character

* 0 or more of previous

+ 1 or more of previous

\ escape special character

 

So, ~I.*\.bam~ is an I followed by 0 or more copies of "any character" and then a period and the letters bam.

 

~.+\.bam~ is 1 or more copies of "any character" followed by a period and the letters bam.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...