How would I go about getting the filename from any type of windows pathname, using strictly the core perl modules? Here's my string:
I need to get just the filename (with extension), and the pathname may change at any given time, so I need some sort of regex or some type of way to JUST get the filename, no matter how the path looks.
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx..
Use Unix file format while saving Your script.
otherwise it will have ^M s or smth likely weird in the EOL,
Then DO NOT use m…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…