User Tools

Site Tools


regex:file_types

Differences

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

Link to this comparison view

Next revision
Previous revision
regex:file_types [2025/05/27 07:32] – created peterregex:file_types [2025/05/27 07:34] (current) peter
Line 20: Line 20:
   * **[dD]** - any character in the set ('d' or 'D').   * **[dD]** - any character in the set ('d' or 'D').
   * **[xX]?** - any character in the set or none.   * **[xX]?** - any character in the set or none.
-    *  ('xmay be missing so 'doc' or 'docx' are both accepted).+    *  **x** may be missing so 'doc' or 'docx' are both accepted.
   * **|** - either the previous or the next pattern.   * **|** - either the previous or the next pattern.
   * **$** - end of matched string.   * **$** - end of matched string.
  
 </WRAP> </WRAP>
 +
 +<WRAP important>
 +**WARNING:**  Without enclosing the whole chain of extensions in **(?:)**, an extension like .docpdf would pass.
 +</WRAP>
 +
 +----
 +
  
regex/file_types.1748331170.txt.gz · Last modified: 2025/05/27 07:32 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki