Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: how to write this Regular Expression?

by polypompholyx (Chaplain)
on Sep 19, 2005 at 15:39 UTC ( #493186=note: print w/replies, xml ) Need Help??


in reply to how to write this Regular Expression?

Best shot, given the poorly-posed question...

use strict; # Single quote string, and back-whack the backslashes # to avoid misinterpretation (by readers, if not by perl). my $strInputFileName = 'D:\\direcorty\\file.ext'; # Globally replace backslashes with four backslashes. # Note that these all need backwhacking too, since # regex acts somewhat like a quoted string. $strInputFileName =~ s{\\}{\\\\\\\\}g;

I don't know what you're doing with the escaped quotes though. Also, it's directory, not 'direcorty'.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493186]
help
Chatterbox?
[PriNet]: go figure, i just tried that, it retains some of the values (not the key) of the pre-assigned value
[PriNet]: i guess i'll just have to use two seperate hashes, there are two, but one is larger than the other, and when i reference the smaller one, it holds onto the values that were assigned to the larger hash (the keynames change, but unless i reassign a new valu

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2017-06-28 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.