Trying to tweak RegEx used to replace ampersands

I Googled the Web and found a RegEx (regular expression) to find ampersands on my Web pages (that were not already part of HTML entities) and replace them with the correct HTML entity for an ampersand. It worked well except in one situation: It will find an ampersand that begins an HTML entity if that ampersand is immediately preceded by a comma. I'm not good enough with RegEx to know how to tweak it and solve the comma problem. Can someone make a suggestion? Here it is ...
&(?!#?[a-z0-9]+;)

Hi,
what I would like to know was quite simply the original character string you wont search and replace. Unfortunately, this statement "and solve the comma problem" did confuse me a bit.
By not stand here with empty hands, I would to give this little hint I remember from an earlier thread (maybe it's wellknown already): If the caption contains an ampersand, the character following the ampersand is underlined to indicate a keyboard mnemonic, use two ampersands: "&&".
Hans-G.

Similar Messages

  • I am trying to set up my new replacement phone and the iCloud account is using my old email that is no longer activated, so I am not able to reset my password in order to set up messaging, etc. What do I do??

    I am trying to set up my new replacement phone and the iCloud account is using my old email that is no longer activated, so I am not able to reset my password in order to set up messaging, etc. What do I do??

    Try to change your Apple ID back to your old email address (http://appleid.apple.com) in order to set up and activate the phone. After the set up please sign out of iCloud and turn off "Find My iPhone" (Settings > iCloud) - do that on all your devices -, then change your Apple ID to your new address again and then add your iCloud account on you devices again.

  • Replacing Ampersand character - &

    Hi All,
    I am working on the PO Layout for Oracle Applications. I have managed to get the program to show long text notes associated with the purchase order lines. However some notes include ampersand characters.
    I have no control over the generation of the data (as it is Oracle standard PO data definition) so I cannot replace it in the pl/sql.
    I have tried using the replace function, but am struggling.
    the following code contains my latest attempt, and also a commented out line which simply shows the text (works fine if the text has no & character) and another attempt I have made.
    <!-- for long text -->
                        <xsl:for-each select="$LINE_LONG_ATTACHMENTS_ROOT_OBJ">
                        <!-- fo:block><fo:inline><xsl:value-of select ="TEXT"/> </fo:inline></fo:block-->
                             SHOW LINE LONG MSGS
                             <xsl:if test="$lineID = .">
                                  <xsl:variable name="line" select="position()" />
                                  <!-- fo:block><fo:inline xdofo:use-attribute-sets="i_61"><xsl:value-of select="../TEXT[$line]"/></fo:inline>     </fo:block><fo:block/ -->      
                                  <fo:block><fo:inline xdofo:use-attribute-sets="i_61"><xsl:value-of select="replace(string(../TEXT[$line]), string('L'), string('M')) "/></fo:inline>     </fo:block><fo:block/>      
                                  <!-- xsl:variable name="note_text" select="replace(string(xdoxslt:normalize_string($_XDOCTX, ../TEXT[$line])), string('L'), string('M'))"/>
    <fo:block><fo:inline xdofo:use-attribute-sets="i_61">
                                  <xsl:value-of select="$note_text"/ >
                                  </fo:inline>     </fo:block><fo:block/-->
                             </xsl:if>
                        </xsl:for-each>
    Currently my example tries to replace L with M as a test. Ideally I would like to replace & with &amps;
    Thanks,
    Will

    Hi Will:
    Unfortunately replacing & in XML is already too late - you don't have valid XML so you can't apply a stylesheet. If you could wrap a cdata section around your & you would be fine:
    <![CDATA[" text "]]>
    , but it seems that you can't modify the XML - so you are between a rock and a hard place.
    Klaus

  • Could not use color replacement tool because it only works in full color mode: Elements 11

    I have a PSD file open and I added a new layer via the copy command.  I have added a Layer Mask to the new layer and I'm trying to use the Brush Tool with black forground to cover part of the new layer.  I'm following an online tutorial step by step, but when I try to use the Brush Tool I get "could not use color replacement tool because it only works in full color mode".  The Image>Mode is set to RGB.  I'm stuck!

    First, show the tools optiond in the bottom of the screen (shortcut F4)
    Now look at which of the three options you can select, brush, impressionist brush or replacement tool. I suspect you have to select the brush.
    Edit:
    The reason of the message is that when you are painting on a mask you are in greyscale mode for the mask. For instance, if you paste a coloured layer into a mask, it will be converted to greyscale.

  • How to use independent replacement paths for same KF over several months?

    Dear Experts,
    I have a query requirement to show KF values for items that meet a condition on another KF for a five month period.  I know that I can accomplish this using a replacement path variable on item for one month at a time, however I am not sure how to do this for multiple months in one query.
    This is an example:
    Month 1
    KF 1 > 0 for Items A & B.........so show KF 2 for for Items A & B
    Month 2
    KF 1 > 0 for Items B & C.........so show KF 2 for for Items B & C
    Month 3
    KF 1 > 0 for Items A & C.........so show KF 2 for for Items A & C
    Thanks in advance for your help!
    Kathryn

    Ok, Nancy, code copy/ paste did work fine.
    what does this mean:
    "Change the image in the properties panel to display your new image."
    (the image is displaying ok)
    NEverthesless, I think I got Murrays old notes.
    Here is my new version of Murrays writing, easiest way I think:
    You open up a pre-existing html, say Chicago. Then drag over with pointer to the new jpeg you want (Buffalo). It replaces Chicago with the buffalo jpeg, all links work perfectly. Then do a save as called Buffalo.

  • I just got a new macbook pro. How do I get the 900  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work.

    I just got a new macbook pro. How do I get the 900+  songs that I took off of cds into iTunes on my computer from my iPhone. I had no problems syncing the music I had purchased from iTunes. I have tried to sync it using iTunes match, this did not work. I would like to have access to my full library without going into the user profile of my old computer, which is on my new computers hard drive. I would like to eventually delete the old profile so that I have more space on my hard drive.

    http://support.apple.com/kb/HT4527?viewlocale=en_US&locale=en_US

  • I bought my ipad in us, and has been using a purchasing applications. Now i already went back to bahrain, i am trying to purchase apllication using my bahrain credit card but it cannot get through as the default country is USA.   I tried

    I bought my ipad in us, and has been using a pre paid card in purchasing applications. Now i already went back to bahrain, i am trying to purchase apllication using my bahrain credit card but it cannot get through as the default country is USA.
    I tried to change my country but a message says i have a store credit balance and must spend it before changing store. But how i can spend it i only have 8 cents left?
    So how will i be able to purchase applications if i am in bahrain?

    You can try again after a few hours after waiting and you still get the same error, you'll need to contact support.
    https://expresslane.apple.com/GetproductgroupList.action

  • I am trying to setup wireless using my old dome Airport ExtremeBase station. I had previously used it about 5 years ago when I had dial up but have now switche to DSL with Windstream. I can not get connecte as ABS keeps trying to dial up(the phone number)

    I am trying to setup wireless using my old dome Airport Extreme Base station. I had previously used it about 5 years ago when I had dial up but have now switched to DSL with Windstream. I can not get connected as the ABS keeps trying to dial up(the old phone number). When I tried to change my network settings an annoying popup window says "your network settings have been changed by another application'. I have no idea what the message is all about and when I close this window it immediately pops up again and prevents me -as far as I can tell -from changing my Airport settings?  I need advice on how to get this wireless setup done. Maybe a reset? or something else? I have the DSL phone line plugged into WIndsteam Seimens Speedstream 4200 modem and then the ethernet (yellow) wire from the WIndsteam Seimens Speedstream 4200 modem to the port on the dome that is a circle of dots.

    1)Can you explain how using the AEBS as a bridge will work with the Seimens Speedstream4200?
    As a bridge, the AEBS will basically become a wireless access point. This will allow the AEBS to provide a wireless network, but still allow the Speedstream to provide NAT & DHCP services for the wireless clients connected to the AEBS. If the AEBS was left as a router, you would have a double-NAT condition which isn't necessary bad in itself, but would create a second subnet. That would make it more difficult for clients connected to the AEBS to access clients connected to the Speedstream.
    2) Is there a link that will guide me through the steps to set the AEBS as a bridge?
    You can easily reconfigure the AEBS as a bridge using the AirPort Utility.
    ref: AirPort Utility > Select the AEBS > Manual Setup > Internet > Internet Connection > Connection Sharing = Off (Bridge Mode)
    3)Can I just connect the DSL phone line to the AEBS and eliminate the Speedstream4200?
    Unfortunately no. The AEBS does not have a built-in DSL modem. You will still need the Speedstream to provide this function.

  • I got an iPad mini from a friend who is now passed away and I'm trying to activate it using my Apple ID but it won't let me because I have to contact the previous owner, what do I do!?

    I got an iPad mini from a friend who is now passed away and I'm trying to activate it using my Apple ID but it won't let me because I have to contact the previous owner, what do I do!?

    Take it, the original purchase receipt, and the friend's death certificate to a physical Apple Store and see what they say.
    (110829)

  • Can some please provide instructions on how to import an iPhoto library from an old Mac to a new Mac without getting a bunch of duplicates?  I tried transferring my pictures using an external hard drive and then copying it to the Pictures folder on my Mac

    Can someone please provide instructions on how to import an iPhoto library from an old Mac to a new Mac without getting a bunch of duplicates?  I tried transferring my pictures using an external hard drive and then copying it to the Pictures folder on my new Mac.  I ended up getting a bunch of duplicates. My old Mac has an older version of iPhoto while the new Mac has iPhoto '11.  Is that the cause of the problem?  Please advise.  Thanks.

    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then launch iPhoto. That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Regards
    TD

  • I want to change my Apple ID because I have a new email address, but what happens when someone tries to facetime me using my old Apple ID?

    I want to change my Apple ID because I have a new email address, but what happens when someone tries to facetime me using my old Apple ID? Will they still be able to contact me on facetime using my old Apple ID?

    Not if you change the ID.  You would need to give them the new address.

  • In illustratorCC2014, I tried to configure the use of the GPU of the new features.  I have installed the java.  I have a 3D set in navidia control panel.  illustrator CC2014 will not start.  I have not repaired even if you restored in navidia control pane

    In illustratorCC2014, I tried to configure the use of the GPU of the new features.
    I have installed the java.
    I have a 3D set in navidia control panel.
    illustrator CC2014 will not start.
    I have not repaired even if you restored in navidia control panel.
    I will add information here. HP Z400 Workstation, windous7Pro, NAVIDIA Quadro 2000, Intel Xeon CPU W3565 3.2GHZ

    In illustratorCC2014, I tried to configure the use of the GPU of the new features.
    I have installed the java.
    I have a 3D set in navidia control panel.
    illustrator CC2014 will not start.
    I have not repaired even if you restored in navidia control panel.
    I will add information here. HP Z400 Workstation, windous7Pro, NAVIDIA Quadro 2000, Intel Xeon CPU W3565 3.2GHZ

  • I tried installing Windows 7 using Boot Camp, but it didn't work, I don't know how to "unparticion" the memory I gave to Boot Camp, and Boot Camp "vanished", help...

    I tried installing Windows 7 using Boot Camp, but it didn't work.
    Although it didn't work, the memory is still divided. So I looked for Boot Camp in aplications, but it literally vanished...
    So I tried downloading it again, but I only found EXE files... they don't work on my MacBook Pro...
    It's very new... Bought it recently...
    Please... I need help to unparticion memory back to original Mac HD and install Boot Camp...
    Thanks...

    Below is the paragraph from the instructions. Follow it exactly and then report what happens at each stage.
    How you remove Windows from your computer depends on whether you installed
    Windows on a second disk partition or on a single-volume disk.
    If you installed Windows on a second disk partition:  Using Boot Camp Assistant as
    described below, remove Windows by deleting the Windows partition and restoring
    the disk to a single-partition Mac OS X volume.
    If your computer has multiple disks and you installed Windows on a disk that has only one
    partition:  Start up in Mac OS X and use Disk Utility, in the Utilities folder, to reformat it
    as a Mac OS X volume.
    To delete Windows and the Windows partition:
    1  Start up in Mac OS X.
    2  Quit all open applications and log out any other users on your computer.
    3  Open Boot Camp Assistant.
    4  Select “Remove Windows 7,” and then click Continue.
    5  Do one of the following:
    a  If your computer has a single internal disk, click Restore.
    b  If your computer has multiple internal disks, select the disk with Windows on it,
    and then select “Restore to a single Mac OS partition” and click Continue.

  • What type of hard drive replacement should i use to replace the hard drive in my first generation mac min 2005 model a 1103?

    what type of hard drive replacement should I use to replace the hard drive on my first generation mac mini model a 1103?   G4 1.25 mhz 40 gb hd 1 gb. mem.

    You'll need a 2.5" parallel ATA interface hard drive. Most are 5400RPM, forget 7200RPM drives and slower 4200rpm drives.  You don't want a serial ATA (SATA) drive, as that has a different connector and won't work.
    One source I've used for drives is Newegg, and their parallel ATA hard drives are at http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100007605%2060000344 2&IsNodeId=1&name=IDE%20Ultra%20ATA100%20%2f%20ATA-6 .  Newegg also has many user comments about the drives. Other sources are OWC at http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ (Click on ATA on the left) . Look for at least a 3 year warranty. 

  • Server Hang While trying to load Data using SQLLDR

    Hi guru's
    OS Version: Centos 6 64 bit
    DB Version : 11gR2 64 bit
    When i am trying to load data using SQL ldr the loading in between hangs. As well as when i am trying to transfer text files which are approx 14Gb using winscp then it show me error as mentioned below:
    Host is not communicating for more than 15 seconds.Still waiting..............
    Not:if problem repeats , by turning off 'Optimize connection buffer size'
    Warning : Abort this operation will close the connection
    I talked to our n/w admin regarding the same problem
    He blaim that its due to oracle not by any n/w
    can anyone help me in this respect.

    Check MOS note :
    SQL*Loader Hangs After Start [ID 1186863.1]

Maybe you are looking for

  • Problems with searching for text in Preview

    Hi, everyone...I'm hoping someone can help me out with this. I have an old MBP with Tiger installed and Preview 3.0.9. I have attempted to search for words in numerous PDF files and the search function NEVER brings up the words even when I know the w

  • Server message displayed in Internet Explorer

    We use PL/SQL for this web application that makes use of following code: owa_util.get_cgi_env('remote_addr') In IE 6, this message comes up: "This document was found at the following location. HTTP/1.1 200 OK Date:Mon, 26 Jan 2004 18:52:02 GMT Allow:

  • BD Lookup Error _ Not using the COmmunication channel!

    Dear all, I Tried to  do DB Lookup as told in this blog by siva /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler I used the below code. I am not Getting any error, the mapping is successfully ACTIVATED. But in the Receiver field i

  • My Samsung ML-2010 Pulls 2 sheets of Paper and Jams -also another prob

    OK, I have the following: cups 1.4.6-1 splix 2.0.0-8 I've taken a look around google and the arch forums and arch wiki, but I'm not 100% sure I've found an answer that seems to fix the problem.  I've tried using the gdi ppd and the official ppd from

  • Change Help font size

    Hello, I don't know if this is really a Universal Access topic. I have what I think is average eyesight for someone just past 40 anyway. But trying to read the built-in online help for any application convinces me I need glasses!! Dictionary.app has