Regex: match any & not part of & a m p ;

First on the side, any advice about taint best practices for taint checking with jsp/java would be appreciated.
Second, I'm trying to match any "&" that does not appear as part of "& a m p ;". (The spaces are not supposed to be there, but you wouldn't see anything otherwise.)
I haven't gotten anything that works satisfactorily. I've tried variations on:
Pattern.compile("&^(amp;)");but with no avail, so I'm obviously missing something.
null

Yep, I understand that, but suppose, just suppose I want to match
&bfoo such that anything following that ampsersand should not be
equal to 'amp;' followed by 'foo'. Obviously 'b' isn't equal to 'amp;'
but there is no 'capturing-complement' notation. I know a horrible
RE can deal with that ;-)Not that horrible, really:  &(?!amp;).*?fooBut you would probably want to be more specific and require the intervening characters to be non-whitespace:  &(?!amp;)\S*?foo...or word characters:  &(?!amp;)\w*?foo(What it lacks in 'horrible' quality I'm trying to make up for in quantity.)
Anyway, instead of "capture", say that lookaheads don't consume any characters. It may still not make sense to your listeners, but at least it gives them a fighting chance. :-/

Similar Messages

  • HT1219 Is there any way to match an alphanumeric part # to a numerical part number?

    Is there any way to match an the part # listed in the article for a drive module (ie MB837G/A) to a numerical part number (ie 607-1661)?
    Thanks!

    Not really. Other software would have to be installed on the device to locate it. That's what Find My iPhone is for (and it's free).
    File a report with your local police.

  • ITunes match does not work on my iPhone 4S, but is working across all of my other Macs and iOS devices.  All other iCloud services are working fine on the 4S - any suggestions?

    iTunes match is not working on my iPhone 4S; it works awesome across all of my Macs and other iOS devices (iPad 2, iPod Touch 4g x 2, and my wife's iPhone 4).  Any suggestions?  Thanks!

    It is not possible to "toggle back and forth" at will. If you associate a device with an Apple ID and you have iTunes Match enabled you must wait 90 days before you can associate it with another Apple ID. See this Apple KB article for more information: http://support.apple.com/kb/HT4627

  • Output map: Document Type does not match any of the given schemas

    On a send port, we have a map that uses a custom xslt. We were hoping to somehow design the map so the output was essentially a generic xs:any schema.  But unless we ad a reference from our map assembly to the assembly that holds the actual schema for
    the message pertaining to the map out put we get an error:
    The Messaging Engine failed while executing the outbound map for the message going to the destination URL "C:\BizTalk\Test\%MessageID%.xml"
    with the Message Type http://test#testmessage. Details:"Document type "outputtest#outputtestmessage" does not match any of the given schemas.
    Is there a way to avoid having to have the reference? 

    Hi ,
    In BizTalk messages are distinct from each other based on the message type . In your case http://test#testmessage (Namespace#RootNode)
    Now coming to your case have you verified whether you have a schema type matching the response is deployed with the solution. The easy way is to look into specific BizTalk application schema node .
    If not ,What you can do is to create a new schema for output having "TestMessage" as record and any element inside it. After that apply a mass copy
    funtiod from source t destination(in your case any type schema created).
    Thanks
    Abhishek

  • The document type does not match any of the given schemas. batching

    I am aggregating messages(batching) in Orchestation by calling pipeline. I have send pipeline where I have standard assemble component and custom pipeline in encode to assign some values .
    When I test it I get following error There was a failure executing the send pipeline: "Zones._870.Pipeline.Send870Pipeline, Zones.870, Version=1.0.0.0, Culture=neutral, PublicKeyToken=51b3a99d8425ff5a" Source: "ZonesAssignGUID" Send
    Port: "SendToAX870" URI: "C:\File_Out\Ingram\870\%MessageID%.xml" Reason: The document type "http://schemas.microsoft.com/dynamics/2011/01/documents/Message#Envelope" does not match any of the given schemas.  
    Can somebody help me how to resolve this issue? 

    Yes this is configured schema as envelope schema. This one is deployed in biztalk . I tried whatever suggest below query and return one record. Not sure but looks like error message misguiding here.
    select * from BT_DocumentSpec where msgtype like '%http://schemas.microsoft.com/dynamics/2011/01/documents/Message#Envelope%'

  • The document type does not match any of the given schemas

    Hi,
    I have created an envelope schema.To precisely process inbound envelope documents,in the xml disassembler component i have used the Documentspec and envelopespec properties.
    in the properties i have the the schema name,Assemblyname
    but i have got the error like The document type does not match any of the given schemas.
    I have verified the schemas have deployed properly.
    can you help me on this?

    Hi Sujith,
    As pointed out by Johns lot's of thing can cause this. You have to analyze lot of things, but this kind of error indicates that the message type that you are debatching is not deployed. For Example :
    If you are debatching on Order than Order schema should be deployed in the admin console.
    One more point that you need not to specifiy Documentspec and envelopespec properties until and unless there are multiple schema's of same message type deployed in different assembly. The dissasembler component will automaticaly disassemble the messages
    just looking after the body XPATH.
    Regards,
    Rahul Madaan

  • My Mac is a 21.5-inch Late 2009 with a 1 TB Seagate HD that must be replaced, according to Apple support, but they denied me that right because the serial is not part of the replacement program: any suggestions to get a plausible solution to this problem?

    My Mac is a 21.5-inch Late 2009 with a 1 TB Seagate HD that must be replaced, according to Apple support Panama, but they denied me that right because the serial is not part of the replacement program: any suggestions to get a plausible solution to this problem?
    I would want to know what are the criteria used by the people al espresslane support to deny the opportunity presented by the replacement program, given the situation that these 1 TB Seagate HD´s have had problems and certainly not only in the batch they accepted, but probable in other batches too.
    The second question is about the powerpc support that is lost when updating from Snow Leopard to Lion X: I can not read my medical application UPTODATE.
    I hope that there wil be some kind of support to help me solve that problem, this is my first petition actually.
    Now, I do not have access to my yahoo email, intermitent access to Apple home page, unpredictable access to Apple store and no access to iCloud in my iMac: when I try to access these web sites, the blue web address bar is interrupted and never goes to the end, no filling up the whole bar.
    I do not know what is the first problem, the Seagate HD or the Lion X, but my life is becoming a miserable one, not having the opportunity to enter in the raplacement program, losing the powerpc support because of the updating to Lion X, the necessity to buy Lion X again because it used to appear as a paid program, but not anymore, and finally having no access to my yahoo email, Apple home website and Apple store and no access at all to the iCloud: I am done.
    Chao, Elías.

    You can have Apple or a competent service shop replace the internal HD for a fee, unless you have AppleCare and the iMac is within its warranty period in which case it will cost nothing. If you must pay the cost will be approximately $350 US.
    PowerPC support is gone with Lion. You can install or retain Snow Leopard on another partition, and boot Snow Leopard as necessary.
    The inability to load web pages is a different problem, unless it is related to your failing hard disk.

  • The version of iOS on does not match any of the versions of iOS supported for development with this installation of the iOS SDK

    Getting this error message as of this morning: The version of iOS on “iPad” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK. I've downloaded the latest SDK and gone through the usual turn off and turn on again for iPad and computer, removed and reinstalled the iPad from Organizer and have no idea how to make apps build now. I was prompted to update the iphone too but there's no way I'm updating it if this issue can't be resolved.

    Okay these are the steps I took to solve the problem - they may not be the right ones for you but they've solved the problem and saved time hunting for some other solution. Firstly I changed my MAC system to Lion with the £20 download, then I deleted the old Xcode and installed the new version that is app based and doesn't support Snow Leopard, then all was well. I can now update my xcode via the app which is quicker and more logical and can update my iPhone rather than chug along avoiding updates as I need to update my existing apps on the app store and upload a new one.

  • RMAN-20242: specification does not match any archive log in the recovery ca

    Hi,
    I'm working with an 9i Oracle RAC (yes, I know this version is out of support...). I'm launching my backup from node 1 with this script
    run {
    sql 'alter system switch logfile'
    sql 'alter system archive log current'
    allocate channel TSM1 type 'sbt_tape' connect *
    parms='ENV=(TDPO_OPTFILE=/home/adsmadm/rman_INF01T01/opt/tdpo.opt)'
    allocate channel TSM2 type 'sbt_tape' connect *
    parms='ENV=(TDPO_OPTFILE=/home/adsmadm/rman_INF01T01/opt/tdpo.opt)'
    backup
    format 'brman_arch_%s_%p'
    (archivelog like '/logs/bbdd/oracle/INF01T01/archiver/%' channel TSM1 delete input )
    (archivelog like '/logs/bbdd/oracle/INF01T03/archiver/%' channel TSM2 delete input )
    release channel TSM2
    release channel TSM1
    And fail with this error:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/13/2012 22:36:43
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20242: specification does not match any archive log in the recovery catalog
    I've take a look to the archives directories and both nodes have archives:
    ora10g:/opt/ora10g > ls -lrt /logs/bbdd/oracle/INF01T01/archiver
    total 97896
    -rw-r----- 1 ora10g dba 2048 Aug 13 22:36 T0001S00000061440648489222.ARC
    -rw-rw---- 1 ora10g dba 38132224 Aug 13 22:36 T0001S00000061430648489222.ARC
    -rw-r----- 1 ora10g dba 11984896 Aug 13 22:36 T0002S00000044040648489222.ARC
    ora10g:/opt/ora10g > ls -lrt /logs/bbdd/oracle/INF01T03/archiver
    total 392984
    -rw-r----- 1 ora10g dba 49364992 Mar 24 2009 T0002S00000007020648489222.ARC
    -rw-r----- 1 ora10g dba 49364992 Mar 25 2009 T0002S00000007030648489222.ARC
    -rw-rw---- 1 ora10g dba 19314688 Mar 25 2009 T0002S00000007040648489222.ARC
    -rw-rw---- 1 ora10g dba 4733952 Mar 25 2009 T0002S00000007050648489222.ARC
    -rw-rw---- 1 ora10g dba 4608 Apr 09 2009 T0002S00000007440648489222.ARC
    -rw-rw---- 1 ora10g dba 2541056 Sep 26 2009 T0002S00000015420648489222.ARC
    -rw-rw---- 1 ora10g dba 49373184 Sep 28 2009 T0002S00000015430648489222.ARC
    -rw-rw---- 1 ora10g dba 3410432 Feb 11 2010 T0002S00000018680648489222.ARC
    -rw-rw---- 1 ora10g dba 599552 Feb 12 2010 T0002S00000018710648489222.ARC
    -rw-rw---- 1 ora10g dba 6574080 Mar 03 2010 T0002S00000019200648489222.ARC
    -rw-rw---- 1 ora10g dba 1663488 Mar 08 2010 T0002S00000019340648489222.ARC
    -rw-rw---- 1 ora10g dba 431104 Apr 07 2010 T0002S00000020160648489222.ARC
    -rw-rw---- 1 ora10g dba 13811712 Apr 19 2010 T0002S00000020460648489222.ARC
    I've tried to made a crosscheck but, only found node1 archives:
    RMAN> change archivelog all crosscheck;
    validation succeeded for archived log
    archive log filename=/logs/bbdd/oracle/INF01T01/archiver/T0001S00000061430648489222.ARC recid=10685 stamp=791246196
    validation succeeded for archived log
    archive log filename=/logs/bbdd/oracle/INF01T01/archiver/T0001S00000061440648489222.ARC recid=10686 stamp=791246196
    validation succeeded for archived log
    archive log filename=/logs/bbdd/oracle/INF01T01/archiver/T0002S00000044040648489222.ARC recid=10687 stamp=791246197
    Crosschecked 3 objects
    Any idea about the way to solve it?
    Thanks in advance!
    dbajug

    Hi,
    Connect to target through rman
    crosscheck archivelog all;
    Then re run the backup. This will work if those two locations provided are archive log destinations.
    In case the issue still persists then
    Connect to target through rman
    catalog start with '/logs/bbdd/oracle/INF01T01/archiver/';
    catalog start with '/logs/bbdd/oracle/INF01T03/archiver/';
    Then re run the backup.
    Thanks,
    Vivek
    Edited by: 952807 on Aug 16, 2012 5:21 PM

  • Install maverik on my MacBook Pro, I had no problem. Two days later I was shut down suddenly and reboot with a closed padlock and asking me for a password that does not match any of mine. What I can do?

    Install maverik on my MacBook Pro, I had no problem. Two days later I was shut down suddenly and reboot with a closed padlock and asking me for a password that does not match any of mine. What  can I do?

    Try booting to the Recovery drive, running Disk Utility and Repair disk and Repair Permissions.
    1. Reboot and immediately hold down command and R (two keys).
    2. When you see the screen shown on this page, select Disk Utility and continue.
    3. When DU is running, select the hard drove on the left, First Aid and Repair Disk.
    4. After Repair Disk, click Repair Permissions.
    Quit DU and restart.

  • The RADIUS request did not match any configured connection request policy (CRP)

    I setup NPS server and added a RADIUS Client access point, my project is to get a wireless user to authenticate using his/her AD credientials, my problem is i can't seem to authenticate my user
    my NPS server is giving me this error log under Event Viewer > Server Logs > Network Policy and Access Services
        Reason:                The RADIUS request did not match any configured connection request policy (CRP).
    but from my understanding i don't need to setup Connection Request Policies because i am using Network Policy
    Please Help!

    thanks for your reply, i setup a new NPS policy here is my error log
    Network Policy Server denied access to a user.
    Contact the Network Policy Server administrator for more information.
    User:
        Security ID:            NULL SID
        Account Name:            csdomain\rsingh
        Account Domain:            csdomain
        Fully Qualified Account Name:    csdomain\rsingh
    Client Machine:
        Security ID:            NULL SID
        Account Name:            -
        Fully Qualified Account Name:    -
        OS-Version:            -
        Called Station Identifier:        0026.992f.6761
        Calling Station Identifier:        2477.0392.b0f8
    NAS:
        NAS IPv4 Address:        192.50.2.2
        NAS IPv6 Address:        -
        NAS Identifier:            MYWAP
        NAS Port-Type:            Wireless - IEEE 802.11
        NAS Port:            35290
    RADIUS Client:
        Client Friendly Name:        MYWAP
        Client IP Address:            192.50.2.2
    Authentication Details:
        Connection Request Policy Name:    PEAP
        Network Policy Name:        -
        Authentication Provider:        Windows
        Authentication Server:        MYSERVER.csdomain.com
        Authentication Type:        EAP
        EAP Type:            -
        Account Session Identifier:        -
        Logging Results:            Accounting information was written to the local log file.
        Reason Code:            22
        Reason:                The client could not be authenticated  because the Extensible Authentication Protocol (EAP) Type cannot be processed by the server.

  • Method 'publishCatalog' does not match any of the valid signatures for mess

    When I run my client, I get "Method 'publishCatalog' does not match any of the valid signatures for message-style service methods" I know that it means that my web service method should conform to one of those 4 methods (http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrappedAndMessage), and I made it conform, yet I still get that error.
    Here's my Service and Client code:
    import org.w3c.dom.Element;
    import org.apache.axis.client.Service;
    import org.apache.axis.client.Call;
    import org.apache.axis.message.SOAPBodyElement;
    import org.apache.axis.utils.XMLUtils;
    import java.io.File;
    import java.io.FileInputStream;
    import java.net.URL;
    import java.util.Vector;
    public class CatalogPublisherServiceClient {
         public static void main(String[] args) throws Exception{
              String endpointURL="http://localhost:8080/axis/services/CatalogPublisherService";
              org.apache.axis.client.Service service = new Service();
              Call call = (Call)service.createCall();
              call.setTargetEndpointAddress(new URL(endpointURL));
              SOAPBodyElement[] reqSOAPBodyElements = new SOAPBodyElement[1];
              File catalogFile = new File("catalog.xml");
              FileInputStream fis = new FileInputStream(catalogFile);
              reqSOAPBodyElements[0] = new SOAPBodyElement(XMLUtils.newDocument(fis).getDocumentElement());
              SOAPBodyElement[] resSOAPBodyElements = (SOAPBodyElement[]) call.invoke(reqSOAPBodyElements);
              SOAPBodyElement resSOAPBodyElement = null;
              for(int i=0; i<resSOAPBodyElements.length; i++){
                   resSOAPBodyElement = (SOAPBodyElement)resSOAPBodyElements;
                   System.out.println(XMLUtils.ElementToString(resSOAPBodyElement.getAsDOM()));
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Text;
    import java.util.Vector;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    import org.apache.axis.MessageContext;
    import org.apache.axis.utils.XMLUtils;
    import org.apache.axis.message.SOAPBodyElement;
    public class CatalogPublisherService {
         public SOAPBodyElement[] publishCatalog (SOAPBodyElement[] soapBodyElements) throws Exception {
              Element soapBody = (Element)soapBodyElements[0];
              NodeList productList = soapBody.getElementsByTagName ("PRODUCT");
         int productCount = productList.getLength();
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setNamespaceAware(true);
         DocumentBuilder builder = factory.newDocumentBuilder();
         Document responseDoc = builder.newDocument();
         Element resRoot = responseDoc.createElementNS("http://www.axis03.ws", "CATALOGUPDATE");
         resRoot.setPrefix("CU");
         Element itemCount = responseDoc.createElement("ITEMCOUNT");
         Text itemCountText = responseDoc.createTextNode (String.valueOf(productCount));
         Element dateReceived = responseDoc.createElement("DATERECEIVED");
         SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
         String date = sdf.format(new Date());
         Text dateReceivedText = responseDoc.createTextNode(date);
         //Append the child elements appropriately
         resRoot.appendChild(itemCount);
         itemCount.appendChild(itemCountText);
         resRoot.appendChild(dateReceived);
         dateReceived.appendChild(dateReceivedText);
         SOAPMessage message=null;
         MessageFactory msgFactory = MessageFactory.newInstance();
         message = msgFactory.createMessage();
         SOAPBodyElement[] result = new SOAPBodyElement[1];
         result[0] = new SOAPBodyElement(resRoot);
         return(result);

    That's a really helpful answer and not smug at all, thanks Carey.
    I just downloaded a DVD image from my university's MSDN Academic Alliance program, named "Microsoft
    Windows 7 with Service Pack 1 Debug/Checked Build 64-bit (English)", which I wanted to use to install over an existing 32-bit version. I thought the install screen was giving this weird unskippable error described in the OP before I even entered
    a key because the 32-bit key I had used on the HDD was somehow interpreted to be used in an upgrade, but no. Even after I wiped the hard drive, this error persisted.
    Guess I'll go Google some more on how to install my legit copy of Windows, because this self-serving shit sure isn't helping.
    edit: IF YOU GOOGLED THIS AND ARE STILL LOOKING FOR YOUR ANSWER, CHECK HERE:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/the-product-key-entered-does-not-match-any-of-the/47e6f575-5792-404b-9b7f-2065bdb91011

  • Windows 8 error "product key does not match any of the Windows images available for installation"

    Hi Experts
    My HP Pavilion laptop came with window 8. I made the USB recovery for windows 8 using hp recovery manager. My windows was corrupted, while I was trying to install windows 7 in dual boot.
    I used above USB recovery to restore factory default. But every time it is giving me error "HP Recovery Manager Failed error code = 0xefffff08"
    Then I downloaded the OEM ISO mage for windows 8 and tried to do the clean install but now installation process is giving me error "The product key entered does not match any of the Windows images available for installation. Enter a different product key" 
    Please help me. To whom I have to contact?

    Hi ghost-rider,
    Thank you for your query, I will do my best to assist you.
    I understand you tried to do a recovery and you received this error  "oxefffff08".
    First I would suggest you run a hardware diagnostics. Testing for Hardware Failures (Windows 8)
    If no hardware failures are located, you have ruled that possibility out.
    Here is a link to Troubleshooting HP System Recovery Problems (Windows 8) that may help.
    If you are still having an issue doing a recovery, I suggest contacting HP support and explain the issue you are having with doing a recovery. They may have another option available for you.
    Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region  Technical Support Sitemap
    The clean install from an OEM image is looking for the product code as it does not match the one that came with the computer, You would need a new code.
    I hope this has helped.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • The product key entered does not match any of the Windows images available for installation. Enter a different product key.

    how do you manage to install windows 7 when the message on the screen is "The product key entered does not match any of the Windows images available for installation. Enter a different product key. "

    That's a really helpful answer and not smug at all, thanks Carey.
    I just downloaded a DVD image from my university's MSDN Academic Alliance program, named "Microsoft
    Windows 7 with Service Pack 1 Debug/Checked Build 64-bit (English)", which I wanted to use to install over an existing 32-bit version. I thought the install screen was giving this weird unskippable error described in the OP before I even entered
    a key because the 32-bit key I had used on the HDD was somehow interpreted to be used in an upgrade, but no. Even after I wiped the hard drive, this error persisted.
    Guess I'll go Google some more on how to install my legit copy of Windows, because this self-serving shit sure isn't helping.
    edit: IF YOU GOOGLED THIS AND ARE STILL LOOKING FOR YOUR ANSWER, CHECK HERE:
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/the-product-key-entered-does-not-match-any-of-the/47e6f575-5792-404b-9b7f-2065bdb91011

  • Brrestore RMAN-20242: specification does not match any archived log in the repository

    Dear all,
    When trying to restore arvhive logs which are taken through netbackup with the following command brrestore -a se1-seqLast=path  like in the image attached . It fails with the following image:

    1) crosscheck archivelog all - when the error happens here, i think this means that there are no archived redo logs in the archivelog destination?? ..or something to that nature.
    2) crosscheck copy - not sure what the other errors mean here.
    specification does not match any archived log in the repositoryI don't see the error here, it's only a msg that mean : There is no files on XXX destination, which is normal when no files found.

Maybe you are looking for