Find and replace $ amount code
I am wondering how change i change a code from <td align="center" bgcolor="#FFFFFF">
<font face="Tahoma" style="font-size: 11pt">
<strong style="font-weight: 400">$12.50</strong></font></td>
to this:
<td class="buy">$12.50</td>
We have a lot of pages to do, not all $ amount codes are the same but we need to end up using <td class="buy">$12.50</td> on all pages.
Disclaimer: Please backup your files before applying this.
You can do this with 5 steps, without needing to wrestle Regex formulas:
Step 1
Open the search/replace
Find in: entire current local site
Search: specific tag -> select strong
With attribute -> select style and put font-weight: 400 in the box next to [=] button
Action: select Strip Tag
And click Replace All
Step 2
Open the search/replace
Find in: entire current local site
Search: specific tag -> select font
With attribute -> select face and put Tahoma in the box next to [=] button
Click [+] button at the left of With Attribute button, this will add another condition line.
With attribute-> select style put font-size: 11pt in the box next to [=] button
Action: select Strip Tag
And click Replace All
Step 3
Open the search/replace
Find in: entire current local site
Search: specific tag -> select td
With attribute -> select align and put center in the box next to [=] button
With attribute-> select bgcolor put #FFFFFF in the box next to [=] button
Action: select Set Attribute -> select class -> put buy into the box
And click Replace All
Step 4
Open the search/replace
Find in: entire current local site
Search: specific tag -> select td
With attribute -> select align and put center in the box next to [=] button
With attribute-> select bgcolor put #FFFFFF in the box next to [=] button
With attribute-> select class put buy in the box next to [=] button
Action: select Remove Attribute -> select align
And click Replace All
Step 5
Open the search/replace
Find in: entire current local site
Search: specific tag -> select td
With attribute-> select bgcolor put #FFFFFF in the box next to [=] button
With attribute-> select class put buy in the box next to [=] button
Action: select Remove Attribute -> select bgcolor
And click Replace All
Hope this helps...
Similar Messages
-
i have to change a menu in 100 sites. The find and replace
menu is helpful but.....the menu has Behaviors/Effects, the find
and replace tool has find and replaced to all sites but the effects
from the Behaviors won't work, and it shows me that the effects are
there in the Behaviors panel but when i pres F12 the effects are
not there.I'm not sure I understand your question but please tell us
HOW you want to
change this menu? And do you *REALLY* mean 100 sites, or 100
files?
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
==================
"Edward82" <[email protected]> wrote in
message
news:fun8gm$58q$[email protected]..
>i have to change a menu in 100 sites. The find and
replace menu is helpful
> but.....the menu has Behaviors/Effects, the find and
replace tool has find
> and
> replaced to all sites but the effects from the Behaviors
won't work, and
> it
> shows me that the effects are there in the Behaviors
panel but when i pres
> F12
> the effects are not there.
> -
How do I find and replace text in PHP files?
How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name?
For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message board'...
If I used the 'inside tag' search with " as the tag, then if "" contained a variable called 'forum' it would also be changed and therefore corrupt the code....
Is there a simple way around this?
Thanks!
I'm using CS3 on Windows Vista.It looks like you're trying to find and replace source code, so you may be able to look at the various places that are looked at when finding and uncheck the ones that don't apply.
But, if it's all source code then that won't help. One thing that may work is to expand the search option - for example if the work "forum" that you're wanting to change it preceded by another word, or character or something that sets it apart, then do you find on that. You can expand that search phrase as far out in either direction that you need to to make it different, if of course that is practical in your situation.
The only other way I can think of is to somehow create an exception rule, but I'm not sure if that's possible or how to do it. -
In Edge Code can i do a find and replace?
In Edge Code can i do a find and replace on multiple lines of code or just a single line?
You can't do it on just one type of file. However, you can do find and replace in selected files. Ctrl-click to select the targeted files in the Files panel, and then choose Selected Files in Site from the Find In drop-down.
-
How to use Microsoft Word's Find and Replace with HTML tags?
Hello to all!
I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
<span class="B01-K-ITAL">random text</span>
To something like this:
<em>random text</em>
I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
Anyone able to lend a hand?Here is my latest regular expression with Perl. I think it matches the spirit of the request in the original post.
Note, this isn't as easy as you think. You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
input text
<html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think. You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
output text
<html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think. You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html> -
I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
I have 5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
[email protected]This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
!####.jpg!
h2. "Name####"
Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
Back of the Painting In Progress </p> </body> </html>
Warmest regards,
Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/ -
Find and replace in RTF Template
Hi,
I'm using a if statement in my template, but i need to change a value within this statement. It's being used multiple times, therefor it would be easier to do a find and replace, is there a way to do a find and replace within the RTF template? Already openede it in Notepad++, but no luck
OsmanI don't think there is a way to find and replace all.. You can view all the code by using Field Browser -> Show All and then replace the code and update one by one from there..
Thanks,
Bipuser -
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." -
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/ -
How do I include a line feed in the replace section of the
find and replace feature of Homesite 5.5?
Converting many lengthy files from <pre> and <tt>
formats into CSS. Presently the target pages have paragraphs broken
into short lines of text with CR/LF's on every line. I wish to
revert the paragraph back to 'wrapped' text with a single CR at the
end of the paragraph.
I can 'find' and eliminate the " ¶ " symbol from each
line, but I do not know how to "replace " text that should include
this symbol.
text</p><p>¶
This is some sample text to¶
show graphically the problem¶
I am having.</p><p>¶
New Paragraph¶
When what I want is :-
<p>This is some sample text to show graphically , the
problem I am having.</p>¶
<p>New paragraph
Presently I can add hash marks (##) where I wish the
paragraph to end. I then globally remove all the "¶"'symbols
that appear in the text. What I want to do now is replace the ##
with code which would produce the following two lines
</p>¶
<p>
I have tried many different codes, such as chr(13) and \r,
but they all just insert the code as straight text.
Can anyone clue me in?
Thanks, gil das far as special chars in simple F-and-R, I replace some
non-ascii chars by copying from a doc and pasting into the dialog
field.
That wouldn't work for CR/LF, so you have to use the extended
search and replace there as you found out.
Note there is also a function for "Replace Double Spacing
with Single Spacing" (on the menu, under Search).
Probably no help for this case, but good to know.
BTW, be careful with your extended search and replace on
CR/LF. If your lines don't end in a space and a CR/LF, you might
want to replace CR/LFs with a space. Otherwise the last word of one
line might be butted against the first word in the next line with
no space when the CR/LF is removed.
Of course that's not a great solution since it adds a lot of
spaces where you have CR/LFs, and you may not want them all
there...
There is a Remove Returns script that might be of use to you.
It's a lot more manual than you probably want for doing lots of
files.
http://www.wilk4.com/asp4hs/list5.htm#removereturns
let us know here if you find some better solution please,
good luck,
jeff -
After upgrading to RH8, all instances of "em dash" symbols in projects are now appearing incorrectly. When we insert the "em dash" symbol, we always eliminate any spaces before and after the symbol. All projects that have been upgraded to use RH8 now add a space after the symbol, which is incorrect.
I have also installed the RH updates and opened a project that had not been upgraded before the update installs...same problem.
Due to the size of the projects, I have tried using the Find and Replace feature within the HTML view; unfortunately, this did not work.
Has this issue been addressed with Adobe? I ran into a similar issue with the upgrade to RH7, where the HTML coding for em dashes would come through in the design view and final .chm output file. Does anyone know of a Find and Replace feature within RH that will allow me to remove every instance where a space appears after the em dash symbol? I have found the FAR tool but would like to avoid it if possible, as I have read it can corrupt RH files.There was one other post recently about this but otherwise this problem had gone quiet so I don't know why you are seeing it in a project that was not opened before applying the patches.
So turning to FAR, it is not the program that corrupts files. It is what the user does with it. As we usually say, it can fix a project in minutes and wreck it in seconds. That is because the user has not thought about what the search might find. For example, you might search for "class" thinking about your topic content but of course FAR works a code level so it will remove all your style classes as well. That is where the corruption comes in, not the software itself. It's rather like blaming the car for the crash.
If you back up first, there is nothing to lose.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
VBA Word Find and Replace characters but excluding certain characters
I am trying to write VBA code in Word that I will eventually run from a VBA Excel module. The aim of the project is to find specific strings in the open Word document that have length of either one or two characters and are of a certain format, and replace
them with other strings in the same format. This is to do with transposing (i.e. changing the musical key) of chord symbols in a songsheet in Word. The Find and Replace strings are contained in ranges in an Excel workbook, which is why I want to eventually
run the code from Excel. I'm much more experienced in writing VBA code in Excel than in Word, and I'm fairly confident with transferring the 'Word VBA' code into an Excel module.
At the moment I'm trying out code entirely in Word, and I've come across a stumbling block. For example, I want it to Find "A" and replace with "B",
BUT only if the "A" is NOT followed by "#" (sharp) or "b" (flat).
Here is the code I've got in Word VBA, which I obtained by editing code produced by the recorder:
Sub F_R()
'Find text must have specific font
With Selection.Find.Font
.Bold = True
.Underline = wdUnderlineWords
.Superscript = False
.Subscript = False
End With
'Replacement text must have specific font
With Selection.Find.Replacement.Font
.Bold = True
.Underline = wdUnderlineWords
.Superscript = False
.Subscript = False
End With
'Find & Replace strings
With Selection.Find
.Text = "A" 'hard-coded here for testing, but this will
'eventually be referenced to a cell in Excel
.Replacement.Text = "B" 'hard-coded here for testing, but this will
'eventually be referenced to a cell in Excel
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
For the Find & Replace section I want to do something like:
With Selection.Find
.Text = "A"
.Text <> "A#"
.Text <> "Ab"
.Replacement.Text = "B"
End With
- but this produces a syntax error, presumably because you can have only one .Text line (or it won't accept <>?)
I tried adopting the way of excluding chars when using the Like operator, and while it compiles, it will not replace
any "A":
With Selection.Find
.Text = "A[!b#]"
.Replacement.Text = "B"
End With
I suspect that I'm going to have to change tack completely in the way I'm doing this. Do you have any suggestions, please?
The chord names/symbols are preceded/succeeded by either spaces or paragraph returns and can look like these, for example (all Font Bold and Underlined words only):
C<sup>7</sup>
Dm<sup>7</sup>
Eb<sup>-5</sup>
Bb<sup>+11</sup>
F#m<sup>7</sup>
i.e. [ABCDEFG][b # | optional][m |optional][- + | superscript, optional][2 3
5 6 7 9 11 13 | superscript, optional]
The crux of my problem is that the note A should be treated as entirely distinct from Ab or A# (and similar for other flattened/sharpened notes).
Sorry for long post.Hi Ian,
It is not easy to find Microsoft forums. However this forum is for the Visual Studio Net version.
Try this forum for VBA.
https://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
Success
Cor -
Find and replace Dreamweaver mx 2004 problem: not opening saved queries
Dreamweaver mx 2004 is not opening saved queries! I use find and replace often and uses to save code replacements to reuse
it. But now when I open the saved query I have 2 situations:
1) comes completely blank
2) or only shows truncated text or code in fields.
I opened the dwr file in text editor and seems to be fine, I mean information saved is there.
Tried recreating cache, or deleting caché, tried saving new or overwritting existant ones, tried saving into a completely different location,
tried in other site definition. Nothing seems to work...Which FTP app did your predecessor use to upload files? If it's still on your work station, it should contain the log-in credentials.
You'll find a few utilities online for revealing passwords
http://www.rixler.com/?gclid=CJeUxd775LkCFWZk7AodyiAAaQ
Nancy O. -
Find and Replace text string in HTML
Opps... I hope this forum is not just for Outlook. My Html files reside on my hard-drive. I am looking for VBA code to open specified file names ####File.html and then find and replace text strings within the html for example "####Name" replaced
with "YYYYY"
I drive the "####File.html" names and the find and replace text strings from an Excel sheet. I am an artist and this Sub would give me time to paint instead of find and replace text. Thank you!
[email protected]Hello Phil,
The current forum is for developers and Outlook related programming questions. That's why I'd suggest hiring anybody for developing the code for you. You may find freelancers, for example. Try googling for any freelance-related web sites and asking such
questions there.
If you decide to develop an Outlook macro on your own, the
Getting Started with VBA in Outlook 2010 article is a good place to start from. -
Find and Replace using Behaviors
I used Find and Replace in CS3 to add HTML code that includes
a DW Behavior. The behavior opens a message popup when clicked.
The Find and Replace works and by adding the Behavior code
correctly. However, when I save the page and then click the link to
test the behavior, the popup does not appear.
The only way I can get the Behavior to work correctly is to
complete the Find and Replace, double-click to open the Behavior
from the Tag group, close the behavior and then resave the page.
Is this a DW problem or am I doing something wrong?You are probably not adding all the necessary code during the
search and
replace. What exactly are you pasting in?
Alec
Adobe Community Expert
Maybe you are looking for
-
My ipod touch 4th generation will not connect to Itunes.
I registered it on a different computer and then was able to connect after that. Now it won't connect to Itunes, but my old Ipod still connects I did the suggestions and also redownloaded Itunes. Any suggestions?
-
If it help before this one I had an iopd touch gen 2
-
MiniDVI to HDMI flashing blue screen
Hiya, I'm trying to connect my RED (sainsbury's- phillips) 37" FHD digital LCD TV to my Macbook (2008)- upgraded to snow leopard. I have tried MiniDVI to DVI adapter then DVI to HDMI cable straight to TV..... mac screen flashes on blue but wont detec
-
Attach a file to purchase requisition
Hi Experts, We have a requirement of attaching a file of any type(Doc,PDF,TXT,PPT) to the purchase requisition, We are able to attach a document through transaction(ME51n). Can any one please suggest are there any function modules or classes to do th
-
Validate errors are not being diplayed. Why?
Im not sure what im doing wrong, but the errors (ie mandatory fields are left blank) are not being diplayed once the form is being validated. Thank you for your time. <action input="/HtmlFile.jsp" name="FileForm" path="/HtmlFile" scope="session" type