I think I'm being a bit dim this morning, but I can't seem to work this out for myself.
I have a largeish project and want to replace some text globally, rather than manually.
I want to change lines that run like this:
for this:
So there are two conditions to be met to select the line - and I can use a regular expression to find them: 'Type="button".*input-small' but I only want to replace the 'input-small' with 'btnclass'
I know this is a VFP forum, and most of you will spot that the code is HTML, but I manage my web projects using the VFP9 IDE, because I think it rocks.
I could write a quick and dirty app which would do the above, but I'm sure it can be done in the IDE, using code references - but this morning it's beyond me.
Any help gratefully received.
Regards
Griff
Keep [Smile]ing
I have a largeish project and want to replace some text globally, rather than manually.
I want to change lines that run like this:
Code:
<input Type="Button" Name="cmdAcceptRequest" ID="cmdAcceptRequest" Value="Accept Document Request" Class="input-small" onclick="cmdAcceptRequest_onclick(frmAcceptRequest)">
for this:
Code:
<input Type="Button" Name="cmdAcceptRequest" ID="cmdAcceptRequest" Value="Accept Document Request" Class="btnclass" onclick="cmdAcceptRequest_onclick(frmAcceptRequest)">
So there are two conditions to be met to select the line - and I can use a regular expression to find them: 'Type="button".*input-small' but I only want to replace the 'input-small' with 'btnclass'
I know this is a VFP forum, and most of you will spot that the code is HTML, but I manage my web projects using the VFP9 IDE, because I think it rocks.
I could write a quick and dirty app which would do the above, but I'm sure it can be done in the IDE, using code references - but this morning it's beyond me.
Any help gratefully received.
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.