Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReGExp for string compare

Status
Not open for further replies.

sfriday

IS-IT--Management
Feb 23, 2002
211
DE
I am reading the environmental variables specifically path

I am trying to see if a path I need is already there, if not I want to write it into the registry and reboot.

However the compare fails due to the fact that a colon : exists, the path I had was c:\informix\bin, i changed it to
/informix
informix
informix/bin
/informix/bin

and they all work, however put it to :/informix and it fails.

I am reading the path test from a file. Is there an easy way to do this other than breaking the path and reassembling.

Steve
 
I lied,

It does not like \informix\bin only \informix or informix

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top