Newbie to RegEx so though I would start with something really easy. My big mistake

 

Problem

If the string does not contain a trailing \ then add one.

 

I can do it the hard way i.e. using substrings etc. but have no idea in regex – I think it’s something to do with \\ and $ but not what or how

 

i.e.

 

$Test = c:\temp”

 

Do something…..

 

$Test now = “c:\temp\”

 

Ken

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to