Regular expression does not work in IE

Hi,
I'm having a regular expression which should check the content of an inputText field: it should contain a number, a character and the size should be at least 6. It's working when I test it in FireFox but it always fails to succeed in IE:
          <af:inputText>
            <af:validateRegExp pattern="^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]{6,24}$"
                               noMatchMessageDetail="Does not match."/>
          </af:inputText>How comes it does not work in IE (6.0)?
JDeveloper 10.1.3.3
Thanks in advance,
Koen Verhulst

hi Koen
The web page you refer to ...
http://www.fileformat.info/tool/regex.htm
... seems to be doing server side Java regular expressions (and as such will behave the same in both FF and IE).
The af:validateRegExp component you want to use does client side evaluation of the regular expression, using scripting, hence the apparent difference between FF and IE.
There is also this web page ...
http://www.regular-expressions.info/javascriptexample.html
... that seems to behave similar to the markup and scripting resulting from the af:validateRegExp component.
Besides the value "2abcdef" there seem to be others that are accepted by IE for the regular expression "^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]{6,24}$", values like these:
"a2abcdef", "a2abcde", "abcdef2abcde", "2a3cdef", "2a34567"
Although these values are not accepted by IE (but are accepted in FF):
"2abcde", "23bcdef"
success
Jan

Similar Messages

  • SQL-Tokenizer based on regular-expressions does not work

    I'm on 10gR2
    Following SQL-Tokenizer converts string :str to rows using :delim as the delimiter-char (:str and :delim are parameters):
    select level, regexp_replace(regexp_substr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ), :in_delimiter, '') as token
    from dual
    connect by regexp_instr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ) > 0
    order by level asc ;
    When using the pipe-symbol "|" as the delimiter, it doesn't work; the rows are processed, but the tokens are null. Using an other char as delimiter (e.g. ";") works fine.
    :str = "123;456;A1;67X;0;-8" & :delim = ";" => works fine
    :str = "123|456|A1|67X|0|-8" & :delim = "|" => does not work
    I think the bug is in the regexp-parameter for the pattern, isn't it?
    Why doesn't work the pipe-symbol as delimiter?
    Can anybody give me a hint for using the correct regexp-pattern?
    thx
    Nuerni

    select level, rtrim(regexp_substr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ),:in_delimiter ) as token
    from dual
    connect by regexp_instr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ) > 0
    order by level asc ;use a rtrim instead of regexp_replace then it works...
    Ravi Kumar

  • Hi, The Airport Express does not work with iOS 7.0.4, I appreciate your help to resolve this event. Thank you,

    Hi, The Airport Express does not work with iOS 7.0.4, I appreciate your help to resolve this event. Thank you,

    Please locate the model number of the AirPort Express and post back that information.
    The model number is located on the side of the AirPort Express. It begins with an "A" followed by four numbers.
    We are not sure what you mean by "does not work".  Does this mean that the AirPort Express worked at one time and has just recently stopped working?
    Have you installed a newer operating system on your iOS device recently?
    Or, is this a new AirPort Express that you are trying to configure for the first time?
    If yes, what service will the AirPort Express perform on your network?
    Please remember that we cannot see your network, so we only know as much about your problem as you can tell us.

  • Match Regular Expression does not match what Match Pattern does

    I have read through a lot of posts about how Match Pattern does not match what Match Regular Expression will due to not processing some characters.
    However, I found a problem with the other way. A simple Reg-Ex that works in Match Pattern but not Match Regular Expression.
    What I have here is just an example. I want to use Match Regular Expression so I can specify some sub-matches.
    The reg-ex is for: one or more non-numeric characters, a space, one or more numeric characters. At the start of the string.
    How can I get this working in Match Regular Expression? I am working in LabVIEW 2010f2 32 bit. Here is the code snippet and the results:
    Rob
    Solved!
    Go to Solution.

    Robert Cole wrote:
    I think I prefer the ~ for negation since ^ is also used for beginning of the string. But we work with what we have.
    Let me offer you a tip and perhaps defend the honor of the regex a little bit.  One of my favorite features of regexes is the ability to specify character classes (and their negation).  One of the reasons I have to think about the ~ versus ^ is that I rarely use ^ in a regex alternative. 
    Some examples:
    [0-9] = \d (digit)
    [^0-9] = \D (not a digit)
    The equivalent regex for your case is: \D+ \d+

  • Regular expression does not execute runtime

    Hello adobe collegue's,
    I am currently stumbling on a strange issue regarding javascript embedded to compress a string:
    // main function to compress any string, removing all non-word characters and making the string all lowercase
    function compressString(input){
        var patt=new RegExp("\\W","g");
        patt.compile(patt);
        var output = input.toLowerCase().replace(patt,"")+"YESS";
        return output;
    Somehow this code does execute perfectly while previewing in adobe designer 9.0.0.2 but runtime all javascript does execute except for the part mentioned above.
    I know this part is executed because in the result i see the string "YESS" added to the response of this function.
    Somehow the pattern is not compiled, or executed runtime...
    I also tried more simple regular expressions but none of them actually worked.
    For the templates the option client is set where to execute the javascript, although while testing the options to solve the issue is also tried settings both and server. None provided the solution.
    Can someone provide any help...it's appreciated!
    Thanks,
    Marcel

    Hi,
    you can make your function more simple.
    function compressString(input){
              return input.toLowerCase().replace(/\W/g,"") + "YESS";

  • SSRS 2008 Gauge ToolTips - expression does not work?

    Hi,
    I'm attempting to use various SSRS 2008 gauges in a report.  When I attempt to use an expression in a tooltip such as '=Sum(Fields!ID.Value)' , the tooltip does not show up.
    However if I replace that expression with a static value such as '1' it pops up.
    It seems that an expression should work?  Any reason that it would not?
    Thanks

    Hi,
    I could reproduce the scenario you posted.
    It is caused that string type is required for the
    ToolTip property of the Gauge Pointer. So, please change the expression to
    =CStr(Sum(Fields!ID.Value)).
    If you have any question, please feel free to ask.
    Thanks,
    Tony Chain
    Tony Chain [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Why my older Airport Express does not work with OS-X 10.9?

    After getting my new iMac and upgrading to Marveric, I can not get my older AirPort Express work. Why?

    Mavericks does not support the older "b/g" wireless versions of the AirPorts, only the newer "n" wireless versions.
    You can use another Mac running Leopard or Snow Leopard, or a PC to administer the older AirPort Express.

  • Regular Expression replacement not working

    I am trying to use a regular expression to replace non-ascii characters on a file, and I'm afraid I've reached the end of my regex knowledge. 
    Here is the specific code
    'Set the Regular Expression paramaters
    Set RegEx = CreateObject("VBScript.Regexp")
    RegEx.Global = True
    RegEx.Pattern = "[^\u0000-\u007F]"
    RegEx.IgnoreCase = True
    'Replace the UTF-8 characters
    ReplacedText = RegEx.Replace(FileText, "\u0020")
    If I understand regular expressions correctly the pattern of "[^\u0000-\u007F]" should replace any character that is not an ascii character, and then replace it with a space (which I understand is "\u0020").  What am I doing wrong?

    Simply use
    ReplacedText = RegEx.Replace(FileText, " ")
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Help Needed: Airport Express does not work

    My Airport Express was ok until one day I setup it under bridge mode in a hotel room. Now neither my iMac and Dell laptop can update the settings in the Airport Express. It always shows error in reading the settings.
    I have tried soft, hard reset and also tried to bring it back to factory settings. However, all these trials were not successful. It did not even blink with green light when I tried to reset it to factory settings (hold the reset pin, plug in power socket and then release the pin... I believe I did it right).
    Also the network name I created in this Airport Express did not change to default name. The Airport Express name was restored to default though.
    Does anyone know how to fix this? Do I have to send the hardware to Apple to fix it or it is just a software failure that I can fix at home with you guys help?
    Thanks!

    Same problem here -- followed instructions to do factory reset to a "T", never saw blinking green LED. Instead led blinks yellow. Always get an error in Airport Utility.
    Apple had best quit poking fun at how lousy Microsoft stuff is before someone sees the large number of product complaints logged in the forums. It isn't smart to toss stones in a glass house.

  • Complex JDOQL expression does not work. Or maybe I'm doing something stupid?

    Hi!
    I have several related objects: Customer, Contract and AccessKey.
    Each Customer has 1-to-many relationship with Contracts (so it can have
    several contracts) and each Contract has 1-to-many relationship with
    AccessKeys (so that contract can have several access keys).
    I'm trying to obtain customer by property of access key using the
    following code:
    Query q = pm.newQuery(Customer.class, "contracts.contains(c) && " +
    "c.accessKeys.contains(a) && " +
    "a.pinCode == pin";
    q.declareParameters("String pin");
    q.declareVariables("Contract c");
    q.declareVariables("AccessKey a");
    Collection result = (Collection) q.execute("123");
    All these objects (Customer, Contract and AccessKey) are
    PersistenceCapable and located in the same package.
    In result I get the following exception:
    javax.jdo.JDOUserException: The field "c" of type "class
    net.xtrim.crm.customer.object.Customer" does not exist or is not persistent.
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:181)
         at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:787)
         at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
         at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
    What's wrong with such query? Maybe the problem is that I'm trying to
    navigate through the field of the object obtained from the collection of
    source object?
    Thank you in advance.
    Best regards,
    Alexey Maslov

    Variable and Parameter declarations are a one-time deal:
    // note the ; seperator
    q.declareVariables ("Contract c; AccessKey a");
    // note the , separator
    q.declareParameters ("String pin, String forExample");
    So when you declare the access key variable, the query "forgets" about
    c, and expects it to be a field, and no longer a variable.
    Hope that solves your problem!
    Alexey Maslov wrote:
    Hi!
    I have several related objects: Customer, Contract and AccessKey. Each
    Customer has 1-to-many relationship with Contracts (so it can have
    several contracts) and each Contract has 1-to-many relationship with
    AccessKeys (so that contract can have several access keys).
    I'm trying to obtain customer by property of access key using the
    following code:
    Query q = pm.newQuery(Customer.class, "contracts.contains(c) && " +
    "c.accessKeys.contains(a) && " +
    "a.pinCode == pin";
    q.declareParameters("String pin");
    q.declareVariables("Contract c");
    q.declareVariables("AccessKey a");
    Collection result = (Collection) q.execute("123");
    All these objects (Customer, Contract and AccessKey) are
    PersistenceCapable and located in the same package.
    In result I get the following exception:
    javax.jdo.JDOUserException: The field "c" of type "class
    net.xtrim.crm.customer.object.Customer" does not exist or is not
    persistent.
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.getExpression(JDBCQuery.java:181)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:787)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
    What's wrong with such query? Maybe the problem is that I'm trying to
    navigate through the field of the object obtained from the collection of
    source object?
    Thank you in advance.
    Best regards,
    Alexey Maslov
    Stephen Kim
    [email protected]
    SolarMetric, Inc.
    http://www.solarmetric.com

  • Regular speaker does not work but speaker phone does?

    I have a Iphone 3G that the regular speaker has quit working on but the speakerphone works fine? What could be wrong with my phone and can I fix it? Or how can I diagnose the problem?

    try plugging your headphones into the headphone jack a the top of your phone,mine did that and i was calling apple and my husband found online that they get dust in them sometimes and need to be cleaned out,so try that,even the guy from apple said the same thing,let me know

  • Bussines Hours shedule in unity express does not work properly

    Hi,
    End user has a unity express 8.0.5 version. I created an script with Editor Express where I defined a Bussines Hours Shedule.
    I have noticed that sometimes the main menu prompts is played eventhough is not a working hours.Other times Bussiness Closed promts is played correctly but after it the main menu prompt is played (I expected to finish the script when the Bussiness Closed prompt is played).
    I have checked several times but the problems remains, I do not know why. I attach the screen shot of script.
    regards

    You can ask advice at this forum.
    *http://stackoverflow.com/questions/
    It looks that the code that calculates the menu width and position isn't triggered unless you resize the window (changing the width 1px by dragging the border or zooming the page works), so the menu flyout still has the default setting.
    I see:
    <pre><nowiki><ul style="width: 51px; left: 1100px; display: none;" class="sub-container flmenu">
    </nowiki></pre>
    After a resize this changes to:
    <pre><nowiki><ul style="width: 898px; left: 252px; display: none;" class="sub-container flmenu">
    </nowiki></pre>
    I don't know how this onresize event ($(window).on('resize', function()) would have to be triggered to initialize the menu properly.

  • Validate in expression does not work

    Hi,
    I know this will sound a bit silly but..
    When I hit a validate button in expression nothing appears in Validation Result field. And I've hit it about hundred times. Yesterday it was working fine...
    It's pretty annoying..
    Has anyone ever had this kind of problem?
    Would be very very thankful for any hint.
    Message was edited by:
    Kaiser Vedran

    I've had the same issue, it's a bug.
    Close mapping and reopen, if that doesn't work close OWB Design Centre and restart. The validate button should then work again.
    Si

  • Printing via Airport Express does not Work

    I have been using an Airport Express Basestation with my Mac Mini and Epson Stylus 880 for about a year without a problem. Now I have moved to an Intel iMac and cannot print via Airport anymore. The file get´s spooled but then I get an error message saying that the printer driver might be incompatible. If I use the same driver with the local USB port everythings works fine.
    Please help,
    Ingo

    Ingo,
    try this link:
    <http://discussions.apple.com/message.jspa?messageID=1674987#1674987>
    Deivy

  • Groups does not work in Mail under Mavericks

    Its not just smart groups, by I cannot get any of my Groups to work with Mail under Mavericks.  I am weary of having to type out the address for each person separately.  Is there some better way?

    I don't know why typing he name of a regular group does not work for you, but…
    Another way is to open the address panel, select a group, then select all in the group, then click the two button.

Maybe you are looking for

  • SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)

    SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB) SELECT     CASE WHEN T0.DocStatus = 'O' THEN 'OPEN' WHEN T0.DocStatus = 'C

  • Split in Mapping Program

    Hai, is it possible to use different Mapping programs in one process? For example I use Idoctype ACC_GL_POSTING01 to book some values from 3rd party into R3. So now I have to make a different mapping in according to the booking code coming from 3rd p

  • MySQL DB program error

    I am trying to create a mySQL DB through JAVA program (query). The Query : stmt.executeUpdate("CREATE DATABASE employee;"); is not working. PLEASE HELP ME................. The program is as follows. try Connection con =null; Class.forName("org.gjt.mm

  • Problem LR 5 Using HDR

    I just installed LR 5 and want to process an HDR photo in CS 5.  When I select CS 5 on the "Edit In" the HDR option is greyed out.  If I try to just process a photo in CS 5 I get a message that "This version of Lightroom may require the Photoshop Cam

  • UWL and workflows

    Hi all i newly started working on portal side to connect to MDM workflows. 1) can you please tell me about that what is the workflows in MDM? 2) how to configure workflows in Portal? then how to start the workflows in portal. i need to integrate the