Talk:Extract file extension: Difference between revisions

Content added Content deleted
No edit summary
m (added an observation on what a file extension IS.)
Line 7: Line 7:
Thank you Paddy. I did not think about your test cases. I believe the underscore one is legal according to this site: http://filext.com/faq/file_extension_information.php
Thank you Paddy. I did not think about your test cases. I believe the underscore one is legal according to this site: http://filext.com/faq/file_extension_information.php
Yes, you are right. My C# code needs to be updated. I will try to do that, when I find time.
Yes, you are right. My C# code needs to be updated. I will try to do that, when I find time.


If the &nbsp; ''file extension'' &nbsp; appears &nbsp; '''after''' &nbsp; the last period (using the first example), then the file extension should be &nbsp; <big>'''jpg'''</big>, &nbsp; and not &nbsp; <big>'''.jpg'''</big> &nbsp; (just a nitpick). &nbsp; Also note that &nbsp; <big>'''.jpg'''</big> &nbsp; contains a non-alphanumeric character, namely the period. &nbsp; In various documents that I read, the file extension is to the &nbsp; ''right'' &nbsp; of the last period (with other caveats, of course), and does not include the period. &nbsp; But other sites do include the period, so ... -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:26, 4 May 2015 (UTC)

Also note that the legality of what is a legal file extension depends on the operating system. &nbsp; Windows/95 for instance, greately expanded what is legal. &nbsp; And I can't vouch for the various flavors of *NIX. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:26, 4 May 2015 (UTC)