Talk:Extract file extension: Difference between revisions
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 ''file extension'' appears '''after''' the last period (using the first example), then the file extension should be <big>'''jpg'''</big>, and not <big>'''.jpg'''</big> (just a nitpick). Also note that <big>'''.jpg'''</big> contains a non-alphanumeric character, namely the period. In various documents that I read, the file extension is to the ''right'' of the last period (with other caveats, of course), and does not include the period. 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. Windows/95 for instance, greately expanded what is legal. 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) |
Revision as of 23:26, 4 May 2015
Hi, I was a quiet reader but decided to contribute now. That is my first every wiki-like article so please excuse my mistakes and kindly tell how to improve. :)
- Hi, First thanks for taking the trouble to lurk and try and get the hang of things before making your first post. It is appreciated :-)
- I re-wrote bits for style and trying to be a little more exacting in the definition. I also added two more tests that fit the revised definition, but the existing C# might need revising and extra output. I also stuck nowiki tags around the example link.
- What do you think? --Paddy3118 (talk) 10:22, 4 May 2015 (UTC)
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.
If the file extension appears after the last period (using the first example), then the file extension should be jpg, and not .jpg (just a nitpick). Also note that .jpg contains a non-alphanumeric character, namely the period. In various documents that I read, the file extension is to the right of the last period (with other caveats, of course), and does not include the period. But other sites do include the period, so ... -- 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. Windows/95 for instance, greately expanded what is legal. And I can't vouch for the various flavors of *NIX. -- Gerard Schildberger (talk) 23:26, 4 May 2015 (UTC)