HTML character entities problem research saved regex and replace the query

I have a many search / replace regular expression queries (.dwr file) that I saved. I have a problem specifically with saved queries that contain HTML entities such as "& nbsp;" or "& shy;" (added spaces code otherwise is not rendered in the 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})

(looking for numbers as 888-555-1234 or 888 555 1234)

It works fine if I manually enter in the search text box. However if I save it to file and reloaded, it will no longer work because the & shy; and the characters are now displayed in "" (space) and "-" (shy) make unnecessary saved query because it is no longer looking for the code. "» I have some questions quite lengthy and complex, and it becomes a problem.

Thanks for any help.

I am currently using Dreaweaver CS4 at home and CS5.5 at work.

OK I misunderstood

Try

\d{3}(\x26nbsp;|\x26shy;) \d {3} (\x26nbsp;|\x26shy ;) \d {4})

--

Kenneth Kawamoto

http://www.materiaprima.co.UK/

Tags: Dreamweaver

Similar Questions

  • Need help to find and replace multiple query

    Hello

    Is it possible to run multiple searches and replace queries both in Dreamweaver 8?

    Currently I have:

    Find: current Document
    Search: Source Code
    Find: ToR
    Title: < acronym 'Mandate' = > ToR < / acronym >
    Options: Match case and find whole words

    I have search and replace about 12 acronyms on each page, and I was wondering if I can create a search and replace the query that includes all my acronyms or do I have to manually run these 12 single queries every time?

    Thanks for the help!

    I'm afraid that is both

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "Acadieman" wrote in message
    News:eci6a5$JDL$1@forums. Macromedia.com...
    > Hi,.
    >
    > Is it possible to run multiple searches and replace queries both in
    > Dreamweaver 8?
    >
    > Currently I have:
    >
    > Search in: current Document
    > Search for: Source Code
    > Find: ToR
    > Replace: ToR
    > Options: match case and find whole words
    >
    > I find and replace about 12 acronyms on each page and I was
    > I was wondering if I can create a search and replace the query that would include
    > all my
    > acronyms or I have to manually run these 12 single queries every time?
    >
    > Thanks for the help!
    >

  • In a ComboBox control HTML character entities

    I was wondering if anyone knew of any way to make HTML character entities appear in a drop-down list box? I want to create a selection combobox of various chemical elements (such as H20), and I have a chemical policy that I would use, that will translate by the & #num; in the character correctly. I can do this in a text box, but because I need to put them in a ComboBox, I was hoping someone knew how to do this.

    Thank you!

    ~ ~ Jenn ~ ~

    Peter,

    I managed to find the answer to my question just to play with the code. So that the table with the character in, I needed to use in the HTMLComboBox component, rather than htmlText = "{data.label}". "

    Now on the fun task of changing all my variables to use the html characters...

    Again, thank you for your help! I really appreciate it!

    ~ ~ Jenn ~ ~

  • I have different bookmarks I want to keep on each computer, synchronization will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place

    I have not yet used sync, but I sense it's going to be a problem if I do. I have different bookmarks I want to keep it on each computer. Sync will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place? So I think that will erase the bookmarks on the second computer you configured to synchronize. Is there a way to merge bookmarks on every computer in the library of a bookmark that contains all bookmarks on both computers, so I'm not all bookmarks in sync?

    Just to be clear, this is something that we have commented several times in the forum, Firefox Sync adds everything that is already in the device for the account and pushes this info for the rest of the devices.

    So if you have 2 computers with data X and the other with the data from there, once you set up synchronization in both computers you will have X + Y at the same time.

    I hope that clarifies the doubts...

  • Steps to remove and replace the keyboard. HP Pavilion dv7-1448dx

    Hello. I have HP Pavilion dv7-1448dx. I have not available a manual where the path is directed to change the laptop keyboard. I need help to get the steps to remove and replace the keyboard. Please provide me with the support as soon as possible so that I can solve this problem. Thank you.

    Link to the .pdf manual

    Click above. We are not HP, all other users trying to help.

  • I accidentally lost some jpeg files using movement and replace the function when transffering in a new folder. Where will the replaced files?

    I moved some images in a folder, some of the images already in the folder had the same name as the new scanned images IE 1 Scan, Scan 2 etc. I used the move and replace the folder without thinking that I was in a hurry. I still need replaced images but now I can not find them I thought that they would have ended up in the trash, but they aren't there?

    You can download some like this free data recovery software to recover deleted files.

    1 panda Recovery http://www.pandorarecovery.com

    2 recuva http://www.snapfiles.com/get/recuva.html

    3. undelete more http://undelete-plus.com/

    How does it work?

    When you delete a file on the FAT32 or NTFS file system, its content is not erased the disc, but only the reference to the data file in the file Table of Allocation or the master file Table is marked as deleted. This means that you might be able to recover files deleted, or to be visible through the file system again.

  • How to implement enter and execute the query in the ADF

    I'm new to ADF and I'm trying to create a simple data entry in ADF 11 g based on a database table. I'm looking to implement the equivalent of the request function enter and execute the query in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help / tell me how this can be implemented.

    Thank you
    Srini.

    How to add a query Panel? Who has the most benefits that the use of Find.

    More info on af:query

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e12419/tagdoc/af_query.html

    Arun-

  • A Script to find and replace the layer names

    Is there scripts to find and replace the names of layers?

    There is an excellent script available for Photoshop that allows you not only to replace words in layer names, but also insert words as prefixes, Suffixes and sequential numbers.

    The version of the illustrator of this script allows only sequential numbering: it does not offer search and replace words.

    Ideally, it would be great if there were something that could find multiple and replaces in a go:

    (for example

    You have layers like this car, the dog, the bat

    You enter: because (Option1), dog (Option2), Bat (Option3)

    Your layers become then: option 1, option 2, Option3).

    )

    Big_SmiLe, which is a very good start! Step 1 of learning how to Script is indeed, by adjusting an existing simple script to make things more complicated. (And usually then "break something", which is also a necessary part of the process.)

    You are right your comment, it comes to repetitive things. For one or two different articles that wouldn't be a problem, but in the longer lists you are soon lost.

    As usual to work with lists of search - replace is to build a table:

    var layernames = [
    [ 'FHairBowlBoy *Hair', 'Hairboy1' ],
    [ 'FHairCurlyafroBoy *Hair', 'Hairboy2' ],
    [ 'FHairSpikyBoy *Hair', 'Hairboy3' ],
    ];
    

    The general idea is to loop through all the names, check if the current layer name is "layernames [i] [0]" (the left column) and if so, rename it "layernames [i] [1]" (the right column). If you know how to write a loop in Javascript, then you can implement this immediately.

    However...

    A more advanced method to do this didn't need even loop on all layernames - instead you can immediately 'get' the correct name by layer! It's magic! Almost!

    The trick is to use a Javascript object rather than a table. JavaScript objects are nothing special; "Layers" of Illustrator are an array of objects, and each object 'sex' has a 'name' property, which you can read and set the value. What I do here, is to create a new object, where the part 'name' is the name of the original layer and its value is the name of the new layer. All you need to check each layer is if there is a "object.originalLayerName" property and if so, assign its value to this layer name.

    It looks a bit like the table above, except that (1) you use {.} instead of [..] to create an object and (2) you add pairs "name: value" instead of 'value' only (in fact, the 'name' of a value in a table is simply her number).

    So here's what it looks like:

    // JavaScript Document
    var doc = app.activeDocument;
    // name indexed object
    var layernames = {
     'FHairBowlBoy *Hair':'Hairboy1',
     'FHairCurlyafroBoy *Hair':'Hairboy2',
     'FHairSpikyBoy *Hair':'Hairboy3'
    };
    // loop through all layers
    for (var i = 0; i < doc.layers.length; i++)
    {
     //Set up Variable to access layer name
     var currentLayer = app.activeDocument.layers[i];
     if (layernames[currentLayer.name])
     {
      currentLayer.name = layernames[currentLayer.name];
     }
    }
    

    Enjoy!

  • Satellite A30 921: how to remove and replace the memory?

    Hi, can someone help me how to remove and replace the memory of satellite A30 921. and also, please give a detailed instruction.

    Thank you in advance.

    Hello

    There is not much to explain. On the low side in the Middle it is placed to cover memory (fixed with two screws). Remove the cover and you will see 2 slots there. I put t know how much memory you here but like Stefan says you can use max 2 GB of RAM (2 x 1024Mo PC2700 - PA3313U-1M1G). How to remove the memory modules, which you can see on http://www.hardwaresecrets.com/article/189/5

    Good bye

  • Laptop HP Touchsmart 15-D020: how to remove and replace the keyboard on laptop HP Touchsmart 15-D020NR

    I spilt a drink on my keyboard and now I can not turn off the caps lock and a number of keys does not work. I need instructions on how to remove and replace the keyboard frame. Thank you.

    On your page of support-look for Maintenance and Service of Guide in the manuals.

    http://support.HP.com/us-en/product/HP-15-D000-TouchSmart-notebook-PC-series/6627588/model/6761859/manuals

  • Search and replace the string formatting

    Hello

    I try to do a search and replace the formatting of a string.

    In the example, I'm looking for the string 'SUCCESSFUL', but it must also begin by usbflash and some number + PASSED.

    I can't get the format to have a number between 1 and 99. The number of replacements should add up to 6 in this case. I tried with \d for any number, and I also tried [1-99].

    Make a right-click on the function search and replace the string.  There is an option to use regular Expressions.  Then give it a try.

    EDIT: You need to set the entry replace all to TRUE.

  • How can I download and replace the fonts directory in the folder Windows for Vista

    Separated from this thread.

    How can I download and replace the fonts directory in the folder Windows for Vista?

    I think I have a corrupted font file, but I don't know which.

    Thank you

    George Criffield

    Oh sorry, you will need to obtain from another computer Windows Vista or your install disc (if you have one, these instructions are here).  I have just the zip and give you a complete file of fonts, but it's against the license (and technically to the United States law) for them to be distributed.

  • G61 does not illuminate unless I have remove and replace the battery.

    Even when the power cord plugged in it will not light. If I remove and replace the battery it lights mode battery and AC. At the same time my HP Support Advisor and HP s Advisor "stopped working".

    I restore to a previous point, no help. Downloaded a new HP advisor, ho help.

    This happened after the recent big WIN7 updated. Help

    Hello

    In the Menu start, open the all programs, open accessories, right-click on command prompt and select "run as Administrator".  In at the prompt, type the following command and press ENTER.

    sfc/scannow                (Note that there is a space between sfc and /)

    Let the entire process, then the output type and press ENTER.  Stop the laptop, unplug the AC adapter unplugged, remove the battery and then press and hold the power button for a minute.

    Now, plug in the AC adapter without the battery inserted, start Notepad, open windows control panel, open Device Manager, expand the entry for the battery, on the right, click on and compatible Microsoft ACPI control method battery and select Uninstall - do uninstall not something else here.  When the uninstall is complete, shut down the PC, unplug the AC adapter, reinsert the battery and then start the PC on just the battery.  Windows will automatically reinstall the driver - leave Windows running for a few minutes. Shut down the PC again.  Now plug the power adapter (with the inserted battery always) and start the laptop to see if it helped the issue at all.

    Kind regards

    DP - K

  • How to have all audio playback with headphones and replace the speakers

    headphones and speakers - interface

    This is probably a stupid and basic question normally, I'd be embarrassed to ask. But I'm old enough not not to be bothered much more. I would like to have all the sound elements come through the headset and replace the speakers. But when I plug the headset comes through both. It worked fine a few days back, but not now. Help!  Please, I beg you!

    Hi pam1948,

    Here are some steps that you can follow and check if they help you in fixing the issue:

    Make sure that the headset is set as audio device by default.

    To do this, follow these steps:

    1. click the Start button, select Control Panel, click hardware and soundand then click sound.
    2. click on the read tab.
    3. select headphones and then click set as default.
    4. on the playback tab, select the playback device, click set upand make sure that the configurations are set correctly.
    5. click OK to save your settings.

    Kind regards
    Abdelouahab

    Microsoft Answers Support Engineer

  • Can we make several Off features in a collection of panels and how the query-off based on the example?

    Mr President.

    Can we make several Off features in a collection of panels and how the query-off based on the example?

    Concerning

    Once again, no jdev version?

    It must be really hard to remember ehich version you are working.

    Would have given a quick glance in the docs

    featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are

    That is the answer to a message.

    The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.

    Timo

Maybe you are looking for

  • I can't get credit cards to load to watch for Apple payroll

    When you try to synchronize the credit cards at Apple Watch to pay Apple, my phone just continues to load, but it never appears on my watch.

  • Satellite L500-21dts cannot access the Bios

    Nice day My L500-21dts is installed with windows XP OS.Once the system is turned on, the system waits idle with a blinking black screen. Even if press us F2 system does not start bios.I tried to hold the power button with battery removed and plugged

  • How I sent to efax

    have officejet 8500 can't seem to find out how efax

  • Vertical lines on monitor

    In my office appears groups of vertical lines or bands, that someone once told me it's the defective LCD but I wonder how it can occur for its 1 year only when I bought this PC. You please give me some assistance?, thank you very much.

  • Can I install a HDD IDE in HP A6700Y

    I have a HP A6700Y (REF # NC686AA #ABA) who needs a new primary HARD drive. I want to test it with an IDE HDD I have on hand. Is it possible to install a HDD IDE in this PC? If it is possible, where the controller ports are located on the map? I coul