User Tools

Site Tools


2018grep_motifs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
2018grep_motifs [2018/09/10 11:31]
david [Variable length patterns]
2018grep_motifs [2018/09/10 11:33]
david [Variable length patterns]
Line 87: Line 87:
 output/​F56H9.5.2.fa:​24:​ttaaatgcttcaaatttaaatcaattaaatc output/​F56H9.5.2.fa:​24:​ttaaatgcttcaaatttaaatcaattaaatc
 output/​R13A5.5.1.fa:​24:​ttactaatttttgttatcttatcaaacaaatatattttccagc output/​R13A5.5.1.fa:​24:​ttactaatttttgttatcttatcaaacaaatatattttccagc
 +</​code>​
 +
 +Here is the full set of repetition operators in regular expressions.
 +<code bash>
 +$ man grep
 +</​code>​
 +
 +...Scrolling way down...
 +
 +<​code>​
 +   ​Repetition
 +       A regular expression may be followed by one of several repetition operators:
 +       ? ​     The preceding item is optional and matched at most once.
 +       ​* ​     The preceding item will be matched zero or more times.
 +       ​+ ​     The preceding item will be matched one or more times.
 +       ​{n} ​   The preceding item is matched exactly n times.
 +       ​{n,​} ​  The preceding item is matched n or more times.
 +       ​{,​m} ​  The preceding item is matched at most m times. ​ This is a GNU extension.
 +       ​{n,​m} ​ The preceding item is matched at least n times, but not more than m times.
 </​code>​ </​code>​
2018grep_motifs.txt ยท Last modified: 2018/09/10 11:37 by david