Regular expression not working for adobe forms

Hi,
Iam using qtp for adobe forms and for some reason if i put in regular expression for apid value it doesn't recognise the object..there is nothing wrong with the regular expression as it is evaluated using regular expression evaluator in qtp 11.0....any ideas
I got all the addins and everything and when i used regular expression for the top window it works but for any other object it doesn't

Please try the code and see the problem. The regular expression is fine.
I can replace the string with these and got results like this:
import java.util.regex.Pattern;
public class HtmlFilter implements TextFilter {
    private static String strTagPattern = "<\\s?(.|\n)*?\\s?>";
    private static int patternMode = Pattern.MULTILINE | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE | Pattern.CANON_EQ;
    private static Pattern tagPattern = Pattern.compile(strTagPattern, patternMode);
    public String filter(String t) {
          if(t==null || t.length()==0) return "";
        String ret = null;
        return tagPattern.matcher(t).replaceAll("");
     public static void main(String[] args) {
          System.out.println(new HtmlFilter().filter(null));
          System.out.println(new HtmlFilter().filter(""));
          System.out.println(new HtmlFilter().filter("<P>abc def</P>"));
          System.out.println(new HtmlFilter().filter("<P>&#25105;&#22269;&#30707;&#27833;&#20379;&#24212;&#23433;&#20840;&#31995;&#32479;&#24433;&#21709;</P>"));
}The results are
abc def
????????????

Similar Messages

  • Print Preview not working for Adobe forms

    Hello experts,
    I am new to designing of Adobe forms. I have the following installations already in place:
    1. ADS
    2. Designer 7.0
    3. Adobe Reader 8.0
    I am trying to execute the standard report FP_EXAMPLE_01 to test whether Adobe forms work coherently with my system config is fine.
    When trying to execute thsi report prg , I get a very perculiar message on clicking on print preview bttn "ADS: Request start time: Tue Feb 05 12:25:05 IST 2008(200.101) "
    Now I am not sure whether it is a Basis issue with the ADS config or Printer settings ?
    Please advise.
    Regards,
    Sonika

    Hi Sonika,
    That is not required functionality. it should display a Adobe Form for Invoice processing.
    I doubt there might be some problem with ADS configuration.
    Can you please do the following test and let me know the result ?
    If the Adobe Interactive Forms have been installed correctly, the
    following tests should run without errors:
    First test:
    1) Call transaction SE38.
    2) Enter the report name "FP_PDF_TEST_00" and choose "Execute" (or press F8).
    3) Enter "ADS" in the entry field for the connection, and choose
    "Execute" (or press F8).
    4) The system should issue a dialog box containing the current version
    information.
    Second test:
    1) Call transaction SE38.
    2) Enter the report name "FP_TEST_00" and choose "Execute" (or press
    F8).
    3) Enter "FP_TEST_00" for the form, "2" for the number of output pages,
    and "ADS" for the ADS connection. The choose "Execute".
    4) Enter a valid output device and choose "Print Preview".
    5) The Adobe Reader should be displayed in the GUI, and display two
    pages with numbered lines.
    Third test:
    1) Call transaction SE38.
    2) Enter the report name "FP_TEST_IA_01" and choose "Execute" (or press
    F8).
    3) Enter "FP_TEST_IA_01" for the form, "ADS" for the ADS connection, and
    any data in the other entry fields (these are already filled with
    default values). Then choose "Execute" (or press F8).
    4) Enter a valid output device and choose "Print Preview".
    5) The Adobe Reader should be displayed in the GUI, and display a page
    with address fields.
    6) Scroll down to the frame for the new address, and fill in those
    fields.
    At the end of the form, an entry field for the date and a value help
    exists. Choose the input help button and check if the system displays
    the datepicker.
    Now you will know yourself if there is any problem with ADS configuration.
    Cheers
    Satya

  • ReplaceAll string by regular expression not work for this case.

    I will delete all tag and want "pure text" but the output is delete all.
    String content = "<aaa>pure text<fff>";
    content = content.replaceAll("<.*>","");Content has output is blank because reqular expression match from begin and end of string
    But when i change
    String content = "<aaa>pure text<fff";
    content = content.replaceAll("<.*>","");The output is ==> pure text<fff
    How make req match in sequential
    Please lead me to solution

    peterdog1234 wrote:
    Thank you very much.
    I know '?' is a Quantifiers.
    I do not understand using ?
    Please lead me againSee the paragraph "Laziness Instead of Greediness" from [http://www.regular-expressions.info/repeat.html].

  • Regular expression not working for String.split()?

    hi, i have a String variable called 'table'.
    It has a bunch of chunks of data seperated by whitespace, whether it
    be spaces or carraige returns. Anyways, i want to split this up using
    the String.split function. i want to split it around whitespace.
    here is my code:
    String codes[] = table.split("\s");
    However, i'm getting back all nulls in the codes variable. What am i doing wrong?
    thanks

    split("\\s")\ is special both in Java String literals and in regex, so you need two of them.
    You'll probably also have to take an extra step it you don't want regex to stop at newlines. I forget the details, so check the docs.

  • Allow Custom Text Entry for Drop down not working For Dynamic form

    Dear All,
    In drop down field Allow custom text entry is working fine if the form is save as a static pdf form file.But if the form is save as a Dynamic pdf form file it is not working.I can enter custom text in drop down field but after filling it up when I click on next field the text from the drop down is disappearing.
    If any body can please help me to solve this problem.
    Thanks a lot in advance
    Regards
    Rakesh

    Dear Jimmypham,
    Thanks a lot for your quick response.But it's not working for me.I have even tried with a form having only single field and save it as a dynamic pdf file.In that form also it's not working.The text which I have entered is disappearing when I click outside of this field.
    Can you please help me to find out the solution for this problem.
    Regards
    Rakesh

  • New update not working for adobe flash?

    Anyone having problems with the new update working for adobe flash?

    No problems here with Flash v12.0.0.77
    Try this ....
    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Try a Flash based video.

  • CFFORM (Flash) Validation with Regular Expressions Not Working

    I am having troubles getting regular expression validation to
    work in a CFFORM. The below code is an extract of a much larger
    form, the first name and last name have a regular expression
    validation...and it doesn't work!
    I'd appreciate any comments/info for help on this, have
    searched high and low on information to get this working...but no
    joy.
    The code is:
    <cffunction name="checkFieldSet" output="false"
    returnType="string">
    <cfargument name="fields" type="string" required="true"
    hint="Fields to search">
    <cfargument name="form" type="string" required="true"
    hint="Name of the form">
    <cfargument name="ascode" type="string" required="true"
    hint="Code to fire if all is good.">
    <cfset var vcode = "">
    <cfset var f = "">
    <cfsavecontent variable="vcode">
    var ok = true;
    var msg = "";
    <cfloop index="f" list="#arguments.fields#">
    <cfoutput>
    if(!mx.validators.Validator.isValid(this,
    '#arguments.form#.#f#')) { msg = msg + #f#.errorString + '\n';
    ok=false; }
    </cfoutput>
    </cfloop>
    </cfsavecontent>
    <cfset vcode = vcode & "if(!ok)
    mx.controls.Alert.show(msg,'Validation Error'); ">
    <cfset vcode = vcode & "if(ok) #ascode#">
    <cfset vcode =
    replaceList(vcode,"#chr(10)#,#chr(13)#,#chr(9)#",",,")>
    <cfreturn vcode>
    </cffunction>
    <cfform name="new_form" format="flash" width="600"
    height="600" skin="halosilver" action="new_data.cfc">
    <cfformgroup type="panel" label="New Form"
    style="background-color:##CCCCCC;">
    <cfformgroup type="tabnavigator" id="tabs">
    <cfformgroup type="page" label="Step 1">
    <cfformgroup type="hbox">
    <cfformgroup type="panel" label="Requestor Information"
    style="headerHeight: 13;">
    <cfformgroup type="vbox">
    <cfinput type="text" name="reqName" width="300"
    label="First Name:" validate="regular_expression" pattern="[^0-9]"
    validateat="onblur" required="yes" message="You must supply your
    First Name.">
    <cfinput type="text" name="reqLname" width="300"
    label="Last Name:" validate="regular_expression" pattern="[^0-9]"
    validateat="onblur" required="yes" message="You must supply your
    Last Name.">
    <cfinput type="text" name="reqEmail" width="300"
    label="Email:" validate="email" required="yes" message="You must
    supply your email or the address given is in the wrong format.">
    <cfinput type="text" name="reqPhone" width="300"
    label="Phone Extension:" validate="integer" required="yes"
    maxlength="4" message="You must supply your phone number.">
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    <cfformgroup type="horizontal"
    style="horizontalAlign:'right';">
    <cfinput type="button" width="100" name="cnt_step2"
    label="next" value="Next"
    onClick="#checkFieldSet("reqName,reqLname,reqEmail,reqPhone","new_form","tabs.selectedInd ex=tabs.selectedIndex+1")#"
    align="right">
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    </cfform>

    quote:
    Originally posted by:
    Luckbox72
    The problem is not the Regex. I have tested 3 or 4 different
    versions that all work on the many different test sites. The
    problem is it that the validation does not seem to work. I have
    changed the patter to only allow NA and I can still type anything
    into the text box. Is there some issue with useing Regex as your
    validation?
    Bear in mind that by default validation does not occur until
    the user attempts to submit the form. If you are trying to control
    the characters that the user can enter into the textbox, as opposed
    to validating what they have entered, you will need to provide your
    own javascript validation.

  • Digital signatures not working for LiveCycle forms in Acrobat Reader

    Hello, when I create a Form in LiveCycle Designer with signature fields, I open the form in Acrobat XI and save the form with extended features (File-->Save As Other-->Extended Features-->Enable Tools), but then when I open the "extended features" form in Acrobat Reader, the signature fields do not work (click the field, but no signature prompt appears).  I do not have this problem when extended features are enabled in Acrobat X.  Why do they not work when they are enabled in Acrobat XI?

    Hi Adam LaClair,
    Please try the steps mentioned below to get the issue fixed.
    1) For Windows :-
    Open Default Programs by clicking the Start button , and then clicking Default Programs.
    Click Associate a file type or protocol with a program.
    Click the file type or protocol that you want the program to act as the default for.
    Click Change program.
    Select Adobe Acrobat for PDF and APPLY.
    2) For MAC
    Click one of the files in the Finder.
    Choose File→Get Info (Command+I).
    In the Info window, click the gray triangle to disclose the Open With pane.
    From the pop-up menu, choose an application Adobe Acrobat
    Click on Change all
    Thanks,
    Vikrantt Singh

  • CS4 suite serial number does not work for Adobe Acrobat Pro

    Hello,
    I am looking for a solution for the serial number issue I am having with Adobe Acrobat Pro. All of other programs within the suite open fine, but when I open Adobe Acrobat Pro it asks for a serial number. When I type in the serial number, I am given a red "X".
    I have called customer support, but they haven't been able to give me any information that will resolve my issue (uninstalled 4 times now). I have Vista and have looked online and on the Adobe website to find a solution. It looks like others are having the same issue from what I can tell while searching. I have run the script too and then reinstalled, but still nothing.

    After some stupid upgrade in my computer (who knows as Microsoft is always doing something), my Acrobat 9 in CS4 stopped working. The error message said to uninstall and reinstall Acrobat. So I went through the control panel and uninstalled it. I then loaded the CD and reinstalled. However the reinstall would NOT accept the orginal serial number. I called Adobe and they gave me a different serial number. Before I let the guy nof the line I tried the  number and it did NOT work! So then he gave me another number which  asked for the previous verison- apparently it was an upgrade number. Luckily I had my old CS3 software and I gave it that number and then it accepted the install. The program now works BUT there is no longer any ADD/REMOVE choice in the CS4 suite in the control panel. There is no way to automatically remove this program anymore! What a mess.
    After reading some of the installation problems others have had and no solutions, I count myself lucky! At least I was able to get the program running.
    Therefore my advise on the serial number problem is to get Adobe on the phonen and get them to give you a number that will work, and don't hang up until you know the program is working!
    If anyone knows how to add the Acrobat to the the add/remove functions in the control panel, please let me know!

  • Barcode BC_CD39 not found for Adobe forms

    Hi All,
    There is a BARCODE format BC_CD39 that we use in SAP Script for printing barcodes.
    In Adobe forms, BARCODES are classified on their technical bar code names. following link is the reference to the same.
    Link: http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94e251ea11d189570000e829fbbd/frameset.htm
    The corresponding technical Bar Code name for BC_CD39 is Code 39. But we are not able to see that in the Adobe Layout designer.
    Is there an alternative to this. We need to replicate excatly what is there in SAP Script(BC_CD39).
    Please advise.
    Thanks,
    Tirth

    Hi,
    First Check your barcode in this Path.
    Start->Run
    C:\Documents and Settings\Application Data\Adobe\Designer\EN\Objects\
    Or
    We Can download the barcode definitions from SAP (i.e. from SE73) and upload to the location you as i mentioned in the path.
    Thanks

  • Airport Express not working for MacBook Air, ok for iMac

    I connect to the internet via wireless broadband; the ethernet cable from the broadband antenna plugs into my Airport Express router.  I run both my 27" iMac desktop and my 13" Mac Book Air off the Airport Express router.  To the best of my knowledge, nothing has changed with my internet provider's settings.
    Since Friday, the MacBook Air internet connection barely works; if a page loads, it takes forever (and I have a very fast broadband connection.)  Checking the same connection on the iMac has no delay and loads instantly.  On the laptop, if the page does load, and I click a link on that page, the link takes me to a new page requesting me to log in to my internet provider, or just fails to load.  I get lots of "page failed to load; interneet connection was reset....".
    I have checked network settings on both machines and they appear to be just fine.  I have run diagnostics and it shows everything working fine.
    I ran Disk Utility (permissions repair and verify disk) and have no problems.
    I have tried restarting the laptop several times.
    Software is up to date.
    I don't think it's the internet server or the connection since it's working on the desktop Mac.
    I'd appreciate any suggestions or things to try; I read about doing soft and hard resets but am reluctant to try that since Airport is working for the desktop computer just fine.

    I have a MacBook Pro Retina display: 15.4-inch late 2015 with OS X Mavericks install, only on second week. 
    Insight works on FaceTime, Skype, but yahoo program does not show insight cam in dropped down.
    Now when I got my new MacBook Pro, I down loaded all new Skype (worked tested), FaceTime (Worked Tested), Yahoo (not worked)
    Fix:
    With the new Maverick you have to use there messager program Version 8.0 (4218). Once I add my yahoo account video works again.
    It also supported AOL, AIM, Google Talk, Jabber.
    Guess I miss it frist time... hope this helps...

  • Serial Key not working for Adobe Creative Suite 5 Design Premium

    I have the serial key for my Adobe Creative Suite 5 Design Premium that I bought in 2011 on my account page. However, when I put the serial number in the installer, it says "This serial number is not valid for this product."
    I just want access to the product I bought. Can anybody help me?

    Are you definitely installing Design Premium CS5, not a similar sounding Creative Suite? And not CS5.5?

  • Command lines in text module is not working in adobe forms

    Hi,
    I have a problem, I have a text module with variables and I placed it in Adobe form its working fine, my problem is I added a command line /: NEW PAGE in the text module, it couldn't trigger a new page at that place.Can anyone help me out in this regard.
    Regards,
    Manohar.

    Hi Manohar,
    Adobe wont support text modules with commands.
    Explain your requirement.
    pavan meda

  • Page protection not work for smart form

    I want to my item data in the same page.
    ex: item no.  material   description   quantity
                 10   0000001  material CH  10
                                      material EN
                                      long text 1
                                      long text 2
    In smartform, i had added folder under loop. and set page protection.
    But page protection still not work.
    Please help. Thanks a lot!!

    Hi Nicole,
    it works in smartforms the procedure is select text elements and give /:protect and paragraph name like p1: text wht ever u want P1:text similary how many ever  u want end it with /:endprotect
    it looks something like this
    /:protect
    p1:
    p1:
    /:endprotect.
    check !
    regards,
    sana.
    reward if helpful...

  • Excel attachment is not working for HCM forms

    Hi all,
    User attached an excel file to HCM process and forms as requestor.
    In approver not able to open excel attachment because the file is broken.
    It is working find to attach others format attachement, i.e. msword file.
    Is excel attachment is not supported in HCM process and forms? Or any configuration need to be setup first?
    br,
    Prakesh.

    Am also facing the similar problem....any iputs are highly appriciated.
    Issue..
    1) Defined the attachment type in IMG.
    2) Added the attachment type "SFREEATTM" by selecting other attributes---> Attachment Types.
    3) Attached the excel file in the design.
    See the screen shot below:
    The Issue is when testing through tcode nwbc in the inbox the attachment tab is not visible after selecting the particular form.
    Please see the screen shot below:
    Did i miss any Configuration?? Please suggest...
    Regards,
    Naveen

Maybe you are looking for