i try to have a regular expresion which will change "dir1/dir2/" to "dir1/dir3/"
only if dir2 is not tmp, and if it is tmp ,I want it not to change and stay "dir1/tmp".
I think I need a lookahead regex but I cant manage.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use if statement before applying the s////…. check using m// if tmp is not there and then replace.