What I'm trying to do is to ignore known differences such as file paths.
I added one replacement item which seems to work, but the second one I'm getting burned by. Here is the first one:
Text to find: c:\\inetpub\\wwwroot\\
Replace with: c:\\Web\\allyourbaserbelongtous\\
Regular expression: yes
Side: left
use for all files within the parent session.
Basically the same idea given here:
http://stackoverflow.com/questions/5...n-text-strings
(Thanks for the post Craig)
My problem is something like this.
2 Full lines from left file to match:
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
2 Full lines from right file to match:
<script type="text/javascript" src="/Resource/scripts/js/jquery/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="/Resource/scripts/js/formField.js"></script>
Now the replacements addition:
Text to find:
"/scripts/.*\.js
Replace with:
"/Resource/.*\.js
Regular expression: yes
Side: Left
Not sure why this fails. Also I tried copying the entire line from start to finish and just modified the portion to /scripts/.*\.js for the left and /Resource/.*\.js and still there was no match.
What regular expression engine is in use with BC? I used RegexBuddy to test what failed and I can't figure out what was done wrong.
Also, I have perhaps encountered a bug in the Replacements Screen in the Session Settings. It appears that if text is longer than the size of the frame available then no text is displayed. A blank spot will populate the available area for that Replacement Item.
I added one replacement item which seems to work, but the second one I'm getting burned by. Here is the first one:
Text to find: c:\\inetpub\\wwwroot\\
Replace with: c:\\Web\\allyourbaserbelongtous\\
Regular expression: yes
Side: left
use for all files within the parent session.
Basically the same idea given here:
http://stackoverflow.com/questions/5...n-text-strings
(Thanks for the post Craig)
My problem is something like this.
2 Full lines from left file to match:
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
2 Full lines from right file to match:
<script type="text/javascript" src="/Resource/scripts/js/jquery/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="/Resource/scripts/js/formField.js"></script>
Now the replacements addition:
Text to find:
"/scripts/.*\.js
Replace with:
"/Resource/.*\.js
Regular expression: yes
Side: Left
Not sure why this fails. Also I tried copying the entire line from start to finish and just modified the portion to /scripts/.*\.js for the left and /Resource/.*\.js and still there was no match.
What regular expression engine is in use with BC? I used RegexBuddy to test what failed and I can't figure out what was done wrong.
Also, I have perhaps encountered a bug in the Replacements Screen in the Session Settings. It appears that if text is longer than the size of the frame available then no text is displayed. A blank spot will populate the available area for that Replacement Item.
Comment