Search and Replace... tried everything, no luck, think it's quite simple!

Hi Guys,
I'm trying to do  some editing on many many html files. As it wouldn't be realistic in the slightest to do it manually I'm trying to use the search and replace feature in DW, but it's proving quite difficult. I've looked at everything available on this forum and others with no luck.
So I'm trying to replace a huge block of code, but as the code is different in all the files I have to use the wildcard. So I match up the code at the front and the block which is the same in all the files I'm trying to change and insert [^"]*. For example, if I wanted to change the meta content  I search for:
<meta name="description" content="[^"]*" />
It doesn't find it.
The other blocks of code are much bigger and it's the same story. If I copy the code in which I am looking to replace (without the wild card) and search it doesn't find it, but if I click off 'use regular expression' it does find it, so this leads me to believe that it may be something to do with the special characters that is in the code that I am trying to replace, but I am unsure how to go about excluding these..
Any help much appreciated,
Brian

I'm the very first to admit that I STINK at Reg Ex.  It's a totally foreign language to me. 
Whenever possible, I use the Search Tag with Attributes feature.
So let's say you need to find all meta tags that contain attribute "name" & the content is different in each one.
Find In: Current document (to test)
Search: Specific Tag         meta
With Attribute                      name = [any value]
Action:  Set Attribute          content   to: type your new values here....
Replace All.
Hope this helps. 
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com/

Similar Messages

  • HT201210 how to fix my wifi option and get it to turn on again wont work and have tried everything i can think of

    Just got a new iphone 4 and when i got it it was always hard to get on the wifi but the other day the option to even get wifi went grey and now it wont let me have the option to get on the internet.  i have tried eveything i could to get it to work again but it just wont work. hopefully someone can help me out so i can get my internet back on my phone again because i use it alot .

    http://support.apple.com/kb/ts1559
    If you are still unable to turn Wi-Fi on, please contact Apple for support and service options.

  • TS5376 Every time I try to install Itunes I get an error message saying it is unable to start services and to verify that I have sufficient privileges.  I am the administrator.  I have tried everything I can think of.

    Every time I try to install Itunes I get an error message saying it is unable to start services and to verify that I have sufficient privileges.  I am the administrator.  I have tried everything I can think of.  When I click the ingore option it doesn't install corectly and I get a message saying MSVCR80.dll file is missing.

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Hi, My iphone has locked me out and says iphone is disabled connect to itunes. but my itunes wont connect with my iphone. i've tried everything i can think of and my phone is still locked and i cant sync it with itunes. what else can i do??

    Hi,
    My iphone has locked me out and says iphone is disabled connect to itunes. but my itunes wont connect with my iphone. i've tried everything i can think of and my phone is still locked and i cant sync it with itunes. what else can i do??

    While connected to iTunes, try...
    http://support.apple.com/kb/HT1808

  • Does anypne know how to fix the missing MSCVR80.dll file? Ive reinstalled itunes several timessysystem restores. Ive tried everything I can think of . Been sitting here all day and nightHELP!!!!!!!!!!!!!!!!!!!

    Does anypne know how to fix the missing MSCVR80.dll file? Ive reinstalled itunes several timessysystem restores. Ive tried everything I can think of . Been sitting here all day and nightHELP!!!!!!!!!!!!!!!!!!!

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Hi, I have iphone 4s and since yesterday my personal hotspot will not work. It's always worked fine in the past and I have a plan with three uk which includes tethering. I've tried everything I can think of including resetting network settings, resetting

    Hi, I have iphone 4s and since yesterday my personal hotspot will not work. It's always worked fine in the past and I have a plan with three uk which includes tethering. I've tried everything I can think of including resetting network settings, resetting the phone as a new phone but nothing works. When connected to the pc it shows on the iphone screen '1 connection' but the pc says 'no internet connection' I've spoken to three who say it must be a phone fault. Any help appreciated. :-)

    If you have restored as new that pretty well covers software issues
    Looks like a trip to an Apple Store and a likely Out of Warranty exchange unit  £159 over the counter
    May e consider an upgrade with the money ?

  • HT201274 Wanted to load an app onto my wife's ipad. BUT, the program keeps saying I've already purchsaed it and will not let me purchase again. I've tried everything I can think of. Now looking at wiping ipda competely and starting over but not sure that'

    Wanted to load an app onto my wife's ipad. BUT, the program keeps saying I've already purchsaed it and will not let me purchase again. I've tried everything I can think of. Now looking at wiping ipad competely and starting over but not sure that'll help. Between the time I purchased the app and now, I had to change password's w/Apple (Stupid system in the first place IMO) and it doesn;t liek new password

    I can find the app, but the free version only. I paid for the upgrade ($1.99) on my ipad and now I want to add it (or buuy it) for my wife's ipda, but it will not allow me

  • Does the labview 8.5 project have a search and replace option that appies to all vi's in the project?

    In 8.2, the only thing the project has to let you search for a vi is "Find vi's on disk", which is redundant since I can do that in windows explorer.  What I want is a way to search for vi's in my application the way the search and replace function works, except I want it to apply to all vi's in a project instead of just the vi's currently loaded in memory.  Do we have this in 8.5?
    -Devin
    I got 99 problems but 8.6 ain't one.

    I'll give an example of what I was trying to do yesterday in 8.2.  I tried to build a source distribution of a large instrument driver.  Since its an instrument driver there is no single top-level vi that contains all vi's - there are different categories of vi's to do different functions on my instrument.  When I'm doing the source distribution I have to do it in several stages since 8.2 doesn't do source distributions right - but thats not really what this post is about.  Anyway, every time I do the distribution I get an error saying CnvrtArrayIntoBitPattern.vi is password protected (and another engineer wrote it and I don't have the password).  So the build fails.  Now I don't know the password, I'll find it out later, but I at least want to know where in the hierarchy this vi is even being called.  I don't know where it is on disk, I don't know what is calling it, it isn't in the project explicitly, it's a dependency.
    If I had a top-level vi that loaded everything, I could just do a search and replace on that vi and find exactly where it is being called in seconds.  But since I am in a project and have no idea where to start looking, there is no way I can find this vi.  Ideally, in 8.5 there would be a search and replace menu option that searches all vi's in a project to find any calls to this vi.  I want to look for all instances of a vi in my project.  It sounds like you still can't really do that in 8.5.
    What I ended up doing is writing a vi that opens all vi's in a folder hierarchy on disk.  I don't know where this vi is, but all vi's in my project are in the same root folder.  So I run my program to open every single project vi.  Then since I know every single vi is open and loaded simultaneously I used the search and replace function on one of them to find all instances of CnvrtArrayIntoBitPattern.vi.  But that is a painstaking process to create a simple search function.
    I think NI is maybe misunderstanding how people are actually using a project.  Not every vi that is being called is going to be explicitly listed in the project.  (Its this same issue that makes source distributions impossible in 8.2 - you can't target dependencies to a support library so every dependency has to be explicitly listed in the project - which is virtually impossible because they are all in different locations and there are hundreds.)  Most people have lots of general purpose vi's they use in many different projects, and they are buried down in code so we aren't even sure where they are all being used.  The new searches you mention assume you already know where the low-level function is and you are looking for their callers.  But sometimes you don't even know where the low level function is.  What if its an NI directory function?  For example, "resample waveform.vi" is an NI function that changed its defaults in 8.2 which meant we had to find every single place we used it and wire "open-interval?" to a constant instead of depending on the default value.  Its in an NI library somewhere and is never listed as a project vi.  So when I needed to find every place through every project that I used this vi, I couldn't do it through  the project manager because there is no search function.  To be practical I add the project-specific vi's to the project, and maybe a couple support directories, but there will always be lots of vi's as dependencies.  But every now and then I'm still going to want to search for one of these vi's.  So in 8.5 there is there still no way to search for vi's that aren't explicitly listed in the project?
    -Devin
    I got 99 problems but 8.6 ain't one.

  • Xml search and replace for 'Session Variables' in column title view

    Hi Experts,
    I have around 10 reports where measure column titles are displayed based the session variable.
    Below is the syntax I have used in the column title
    @{biServer.variables['NQ_SESSION.VariableName']}
    Now I would like to replace the above syntax with some static text. To do this, I am trying to use the xml search and replace feature in the catalog manager.
    For some reason, catalog manager is unable to find the syntax in the xml file. I have tried using escape character also for the apostrophe by using &apos, but no luck.
    Any pointers on how to replace the text?
    Thanks

    Using Analysis get the xml conversion for @{biServer.variables['NQ_SESSION.VariableName']} from Advanced tab's xml code
    use this code to find in catalog manager, if you able to find then go for search and replace option.
    I think this should work for you.

  • Search and Replace String throwing the wrong error message with regexp?

    This came up in a LAVA thread, and I'm not sure if there's a bug here or not. When using Search and Replace string, and using a regular expression of [(G[b|i])], LabVIEW throws error -4622, "There is an unmatched parenthesis in a regular expression."  There are obviously no unmatched parenthesis in that expression, so it seems to me that the wrong error is being thrown. I'm just not sure if that's a syntactically valid regexp. The problem seems to be with nesting [ ]'s inside ( )'s inside [ ]'s. I've tried a couple of regexp resources on the Web, and one suggests it's valid, while the other seems to think it isn't.
    Message Edited by eaolson on 03-13-2007 10:33 AM
    Attachments:
    ATML_StandardUnit2.vi ‏10 KB
    regexp.png ‏5 KB

    adambrewster wrote:
    I think your regexp is invalid.
    In regexps, brackets are not the same as parentheses.  Parens are for grouping, while brackets are for matching one of a class of characters.  Brackets can not be nested.
    If the regexp is replaced with [G[bi]], there is no error, so it's not a matter of nested brackets. I couldn't find anything on the PCRE man page that forbids nested brackets specifically, but it makes sense.
    Your expression "[(G[bi])]", therefore parses as a character class which matches '(', 'G', '[', 'b', or 'i' followed by an unmatched paren, and an unmatched bracket.
    I don't believe that's the case. Replace the regexp with [(Gbi)], and the error goes away. So it's not a matter of the '(' being literal, and then encountering a ')' without a matching '('.
    daveTW wrote:
    what string exactly you want to replace? I think the round braces are not right in this case, since they mark partial matches which are given back by "match regular expression". But you don't want to extract parts of the string, you want to replace them (or delete, with empty <replace string>). So if you leave the outer [( ... )] then your RegEx means all strings with either "Gb" or "Gi".
    It's not my regular expression. A poster at LAVA was having problems with one of his (a truly frightening one), and this seemed to be the element that was causing the problem. I'm pretty sure that the originator of the regexp meant to use G(b|i), which seems like a complicated way of matching "Gb" or "Gi", if you ask me.

  • How can I search and replace fonts?

    iOS 7 doesn't support the Adobe workhorse fonts I've most relied on for years, and arbitrarily changes them to iOS built-in fonts when I link my standard documents and templates to the iPhone, via iCloud. There's no apparent logic to how it does this; a Pages document in Minion Pro, a serif font, gets changed to the sans-serif Helvetica. Myriad Pro may come out in Times New Roman. I accept that the iPhone's limited number of fonts makes translation necessary, but does Pages offer a way in which I can search and replace inappropriately substituted fonts for more logical alternatives?

    You noticed the first one yourself: the Found item list seems to randomly jump around the document -- I believe you are correct in your observation it may be due to the object construction order. That tells me, by the way, something about your lot numbers that tou didn't mention: your text is not one continuous long threaded story, but it's all or partially in disconnected etxt frames. The Found list does return everything inside a single story in the correct order, but it goes over each separate story in the order they were constructed.
    The only solution is to gather all of your lot numbers, *re-sort* them according to the page number they appear on (and some sort of Worst Case Scenario is when you might have more than one lot number frame per page; in that case you also need to sort by textframe, top to bottom -- yet even worse is if you also may have these textframes side by side!).
    Only then you have a reliable counting order.
    This isn't too bad. We can just extend the method I offered for sorting top-to-bottom/left-to-right in Re: Working around the frame selection order issue in CS 4 and make it also include page numbers:
    function byPageYX(a,b) {
        var
            aP = a.parentTextFrames[0].parentPage.index,
            bP = b.parentTextFrames[0].parentPage.index,
            aY = a.baseline[0],
            bY = b.baseline[0],
            aX = a.horizontalOffset[1],
            bX = b.horizontalOffset[1],
            dP = aP-bP,
            dy = aY-bY,
            dx = aX-bX;
        return dP?dP:(dy?dy:dx);
    myResults.sort(byPageYX);
    Or something like that.
    As for actually implementing the above I cannot be of any help with Applescript.
    Once we're dealing with sorting I think you're much better off in Javascript anyhow.

  • Global Search and Replace for Scrambled/Garbled Characters

    So I exported a bunch (over 3000) contacts from my Outlook on Windows by using Outlook2Mac, and also tried just using a straight CSV export. But the Chinese characters came out all garbled, and I no longer have the use of that Windows machine anymore.
    Here's an example:
    Name: ∂¿¨¸™K (May Huang)
    Job Title: ±M§·∏g≤z
    Dept: ¿Á∑~≥B/ODM∑~∞»≥°
    Company: ®Ù•fl∞ͪ⁄
    Address:
    §≠™—∂m§≠≈v§≠∏Ù15∏π
    •x•_ø§
    •x∆W
    I figure I can slowly piece together most of it by doing lots of global search and replaces -- for instance, "•x∆W" should be "台灣" (Taiwan) -- and changing each characters I know one by one.
    Problem is, I can't figure out how to do a find and replace! Can anyone help me out?
    Thanks in advance!
    PowerBook G4 17   Mac OS X (10.4.5)  

    But for the sake of getting a solution to the
    original problem, I wasn't able to export the vCards
    from AddressBook and then do what you said. For some
    reason, I couldn't open the .vcf file in TextEdit;
    kept telling me that the file wasn't encoded in
    "Traditional Chinese (Windows, DOS)" format.
    You need to use the Open dialogue in TextEdit and open the .vcf in something that it will accept. When you export the stuff from Address book, it indeed is not in Trad Chinese.
    I don't have your stuff, so I can't be exactly sure, but it should work something like this. You export everything from Address Book. Use the Open dialogue of TextEdit to open the file, probably as UTF-8. Save as MacRoman. Open again as Trad Chinese (Windows). Save as UTF-8. Reimport. You may need to experiment to find what works right.

  • Z77A-GD65 build won't post, I've tried everything I can think of...

    Hello all,
    Here are the parts:
    MSI Z77A-GD65 mobo
    Intel i5-3570K LGA 1155
    MSI N560GTX-TiHawk graphics card
    Samsung 30nm DDR3 RAM 2x 4gb
    Corsair H100 cooling
    Samsung 830SSD
    Silverstone ST1000 1000watt power supply (this and my HDD are the only components from my old build and the HDD isn't attached)
    I plug everything in, check and recheck, and all the fans and lights turn on for maybe a second and shut off with no beeps. I've RMA'd the board and processor to no avail. I've been breadboarding the build since the first time it failed to start. I checked the power supply with the paper clip test and on my old build to see if it was the problem and it was not as far as I can tell. It still functions as it should with the old build.
    I followed multiple instructions to trouble shoot this problem and haven't gotten anywhere. I've tried with just the CPU, H100 and a stick of RAM and still get the same issue. I've tried both sticks separately in each socket and had the same issue, as well as a completely different set of sticks. I've switch the CPU cooler from the H100 to the stock one with no results. Reseated everything. Reset the CMOS. This build has never posted so nothing is overclocked and nothing has had any firmware updates. I've tried everything I can think of to get this problem fixed and I can't find the solution. Any suggestions would be greatly appreciated. I should probably note that my old build is pretty old so most of the new parts aren't compatible with it so I can't update firmware and such on my own if those are possible issues.
    Thanks.
    PS. Posting from my IPad so I apologize for any typos.

    Quote from: Bernhard on 27-July-12, 12:50:02
    Are you saying that this is a new board and processor after having the same problems on the previous parts ?
    I bought all the parts for this build, had the issue and though it was mobo caused so I sent that back. Then I had the same issue with the replacement so i sent the processor back. Same issue with the replace ment processor.
    Quote from: xmad on 27-July-12, 19:37:58
    Just to ask a probably silly question, but does that old psu have the proper connectors? Are the 4 pin connectors near the cpu filled? Is the backplate on backwards and shorting something?
    Yes, it has all the right ports and connections. The backplate is correct as far as I can tell.
    After talking with MSI and a local computer shop my current best guess is that I got a board with an old version of the bios that isn't compatible with the processor I have. That means to bios will need to be flash updated, something I have no idea how to do. My local computer shop said they could do it for 65$ but with no garuntees if something goes wrong. So, I'm going to send it to MSI and have them do it.
    Thanks for the ideas guys, if you can think of anything else let me know.

  • Global search and replace on large-scale multi-user sites

    Is there a way for Dreamweaver to select only the files that
    are found when using the find and replace facility? This would make
    updating large websites a lot easier.
    From time to time I need to perform small changes to text or
    code (that obviously is not contained in an include file or library
    item) sitewide. As the site is administered by multiple users, it
    uses the check-in/check-out system, which means that before editing
    a file, it needs to be checked out. Thus, we can't just use search
    and replace directly, we have to check out the relevant files
    before performing the replace routine. The problem is selecting
    only those files which will be affected by the search and replace
    (and perform the operation in minutes) rather than selecting
    everything (and spending hours).
    Since it seems one is unable to select only files that appear
    in the search results, I have to manually identify the folder that
    holds the files with the results, and then check it out. As the
    files which need to be edited might be scattered around the whole
    site, this often means that I have to check out whole folders close
    to the site root. The check-out command will include everything in
    a folder, and the site contains thousands of files (which has to be
    checked back in afterwards), so obviously this is a heavy and
    time-consuming operation.
    Does anyone know if DW has a way of selecting only the
    relevant documents, or have suggestions for other ways of doing
    this? I get the feeling that this is most easily achievable by
    using tools outside DW, but I hesitate to go outside DW since it
    would interfere with DW's site managment system.

    I don't think you will find anyone here with such experience,
    not the least
    reason being that Library items run out of useful steam at
    about 100 pages.
    To use them on larger sites is just too tedious and risky,
    honestly. Is
    there any possibility to change to server-side includes?
    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
    ==================
    "lochnessmoose" <[email protected]> wrote in
    message
    news:gb5ua7$a2t$[email protected]..
    > Is there really noone here with experience with this
    problem?
    >
    > The same problem applies to editing library items. I
    need to update a
    > library
    > item that will affect 200+ files (on a website that has
    thousands). Being
    > able
    > to select only those 200 for check out before editing
    would be a lot
    > easier
    > than having to check out the entire 500 MB site....
    >

  • HTML character entities problem in saved regex search and replace query

    I have a many search and replace regular expression queries (.dwr files) that I have saved. I have a problem specifically with saved queries that contain HTML entities such as "& nbsp ; " or "& shy ;" (spaces added otherwise code doesn't render in browser). For example if I use the following search:
    ([\d]{3}& shy ;[\d]{3}& shy ;[\d]{4}|[\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4})
    (which searches for numbers in the 888-555-1234 or 888 555 1234 formats)
    This will work fine if I manually enter it into the search text area. However if I save it to file and reload it, it will no longer work because the &shy; and   characters are now displayed as " " (space) and "-"(shy) rendering the saved query useless as it's no longer searching for the code. I have some fairly long and complex queries and this is becoming a problem.
    Thanks for any help.
    I'm currently using Dreaweaver CS4 at home and CS5.5 at work.

    Thanks for your reply Kenneth, but that is not what I'm trying to accomplish. I'm looking for the HTML entities that exist in the source code which are & shy ; and & nbsp ; (without the spaces). As I mentioned above, if I enter them manually in the search box, I will get the corrrect results. If I save the search and then reload it, the special characters are no longer in HTML and the search is now useless.
    Just for example again
    In an open document in code view insert a number in the format (without the spaces): 888& nbsp;888& nbsp ;8888
    Open a search dialog box and enter (without the spaces): [\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4}
    The search will find that entry.
    Save search as phone.dwr for example. Then load it and try the search again. It won't work because upon loading the search Dreamweaver replaces the HTML code which was saved with the rendered HTML. So now the search shows up as: [\d]{3} [\d]{3} [\d]{4} which will not find the string with hard coded non-breaking spaces that I'm looking for.
    Basically I want to be able to save a search query for reuse. When I load a search query, I want it to be exactly what I saved, not something that DW has rendered (that doesn't work).

Maybe you are looking for

  • Why do I keep getting the rainbow spinning wheel in Garageband 11

    I have the latest MBP (see specs below) and I was recording today with Garageband like I always do.  I was using my MOTU 828 MK1 8 channle audio interface with the lates compatible Lion update from Sept 2011.  I have never had any problems untill las

  • How can I write to a (external)file from a stored procedure

    I want to write some data to a (external) file. I have it working with the function UTL_FILE. My problem is I want to write to a file on a mapped drive (so a drive on a different machine). This is not working. Does anyone know a way to build this. Pl

  • I don't know what to ask for. Need a dialog box for a erorr

    Can anyone tell me or show me a sample of code the will allow me to have an error dialog box. I have a date that when the date format is wrong a dialog box pops up and informs the user of the correct date format. This is the code that changes the bac

  • Under what condition does SAP populate the Contract number during dunning

    Hi, Would anyone possibly know under what condition SAP populates the Contract number in the Dunning history transaction(FPM3). We have seen some examples in our production environment where dunning populated the Contract number(VTREF) in the dunning

  • How to read characters from a string ?

    Hi, In my java program I accepted string from the user and now I want to calculate the length of the string, and then read characters one by one to encrypt it. How to read the characters one by one ? Like Mid$ function in VB. Small code to illustrate