Regular Expressions problem with OPA

hi,
I have version OPA 10.2, when I try using regualr expressions it won't let you submit data and move onto the next screen.
I've tried for example using the OPA hel's National Insurance number, I tried for a 6 digit number using:
For a minimum of 6 digits:
^\D*(?:\d\D*){6,}$
and I also tried:
^[0-9]{1,6}$
None of them worked; is there something obvious I'm missing?
Thanks

Hello,
Just tried this out and the two expressions worked as I would expect. I receive the error message as configured in the properties file and cannot progress to the next screen until I enter 6 digits or more. Is that different to the behaviour you are seeing? Also, have you tried using the debugger without screens? The error message would appear at the top of the debug window "Cannot set value of attribute 'test'. Reason: Invalid Value."
Also, are you trying to validate a text attribute or a number attribute? Number attributes can be a little trickier since the regex appears to run against them after they're converted. So if the user enters "99", the regex validates against "99.0".

Similar Messages

  • Regular Expressions - Problem

    Hi @ all,
    I need a complicate regular expression, I don´t know.
    I have a big folder with many .htm pages (800-1000) and I have to do the following:
    http://www.domain.de/ab%32-xyz?myshop=123
    I have to delete the "ab%32-xyz", the problem is, that in this are, there could be every symbol, letter or number.
    So the area between "http://www.domain.de/" and "?myshop=123" (these 2 areas are everytime identical in all documents) shoud be deleted.
    Could everyone say me, how to do this with regular expressions in dreamweaver?
    Thanks,
    Felix
    P.S.: Sorry, my Engish is not so good, I´m from Germany

    Do you want to replace the random text with anything?
    If not, this is how you do it in DW:
    Make a backup of the folder you want to edit, just in case anything goes wrong
    Edit > Find and Replace
    In the Find and Replace dialog box, select Folder from the "Find in" drop-down menu, and select the folder you want to work with.
    Select Source Code from the Search drop-down menu.
    Put the following code in the Find text area:
    (http://www\.domain\.de/)[^?]+(\?myshop=123)
    Put the following code in the Replace text area:
    $1$2
    In Options, select the "Use regular expression" check box.
    Click Replace All. Dreamweaver will warn you that the operation cannot be undone in pages that aren't currently open. As long as you have made a backup, click OK to perform the operation.

  • Simple regular expression problem

    Hello,
    I need help with regular expressions. I have a situation when I need to get data from one table to another and I think my problem can be solved using REG EXP, but I don't know how to use them properly.
    I need to seperate varchar2 fileld whcih is basically number/number into 2 seperate number fields
    CREATE TABLE tst (CODE VARCHAR2(10));
    INSERT INTO tst VALUES('10/15');
    INSERT INTO tst VALUES('13/12');
    INSERT INTO tst VALUES('30');
    INSERT INTO tst VALUES('15');
    CREATE TABLE tst2 (po NUMBER, co NUMBER); I need to get code into co and po columns. I think result should look something like this, but:
    INSERT INTO tst2
    SELECT regexp_substr(CODE 'something here to get the number before /') AS po,
           regexpr_substr(CODE 'something here to get number after') AS co
    FROM tst;   Any help appreciated

    Hi Blu,
    Yes, I have tested with "0" in the figure (like 10/20 30/40). And it worked that time and then I replied. :) :)
    But Still it has a problem in pattern and rectified it below.
    Like :-
    SQL> select regexp_substr('10/40','[^/][0 9]',1,2) DD from dual;
    DD
    40
    But if I (The way you test) use a non zero value like 43 ; below query will not return 43.
    SQL> select regexp_substr('15/43','[^/][0 9]',1,2) DD from dual;
    DD
    My pattern has a slight mistake("-" missing between 0 and 9) and I changed and retested . Correct pattern - '[^/][0-9]' and now it will return 43..
    SQL> select regexp_substr('15/43','[^/][0-9]',1,2) dd from dual ;
    DD
    43this '[^/]+' pattern also works fine.
    Thank you for pointing out Blu; as I came to know lot more about patterns.
    Regards,
    Ashutosh

  • Having problems with OPA 10 and office 2007 templates

    Hi,
    I have a OPA 10 and office 2007 set up which is having some issues with the macros. Seems to me that the visual basic code is not kicking off really well sometimes. I am trying to map the sequence which leads to the errors and I believe that the issue is around opening an old word doc which has a old template version (.dot). This may be the cause for OPA getting lost when working with word 2007.
    For example, I ask to open a rules doc and the visual basic tells me that OPA couldn't open the doc but word is opening the doc anyway. However none of the toolbar commands work as well as I can 't save the doc etc.
    Have you experienced any issue with OPA 10 and Office 2007? Any special word configuration? Should i go back to office 2003?
    BTW, I have both dotm and dot templates loaded as add-ins in word. The dotm toolbar looks good but the dot toolbar is a bit strange in 2007.
    Cheers,
    Paulo

    Hi Paulo,
    Have a look at the following tips from Davin Fifield about troubleshooting the toolbar.
    Sometimes when using Oracle Policy Modeling, Microsoft Word documents that are part of a Policy Modeling project may appear without the OPA toolbar (in Office 2003) or OPA options on the Add-Ins ribbon (in Office 2007) when opened in Microsoft Word.
    This problem can be caused by various factors.
    Here are the top three troubleshooting steps to try to recover from this situation.
    1. With your project open in Oracle Policy Modeling, run Update Oracle Policy Templates from the Tools menu. This will attempt to make sure the correct Word template is attached to each project Word document that is not currently excluded from the build. Open a Word document to see if the toolbar/ribbon is now displayed correctly. If not, continue to step 2.
    2. Try changing the UI language for your project. To do this, choose Options, from the Tools menu in Oracle Policy Modeling. Select Environment. Selet General. Under Authoring UI Language, choose a language other than your preferred UI language, and click OK. Then repeat these steps to revert to your preferred language. Open a Word document to see if the toolbar/ribbon is now displayed correctly. If not, continue to step 3.
    3. Open one of the Word documents in your Policy Modeling project. Run the macro UpdateToolbar: In Word 2007, choose the View ribbon, then select Macros/View Macros, highlight the UpdateToolbar macro, then choose Run.
    Does this resolve your issue?
    Jasmine

  • Receiver determination - Xpath expression problem with count

    I am working with a scenario where I pick up records from a JDBC connection and if the number of records I pick up is less than a certain number I want to call a webservice.  If it is greater than the number I want to write out a file to be processed by a different process on the receiving end.  I have created the receiver determination condition with the following conditions:
    (/p1:MT_HOG_Data/row[count(row) > 3] EX)
    (/p1:MT_HOG_Data/row[count(row) <= 3] EX)
    The integration is always processing the second condition no matter how many records come in.  I have tried with and without the multiline option.  Can anyone help with this?
    I have searched through the forum and checked the following links without any resolution:
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    I can't find any examples where a count of records is checked in the expression editor.  Thanks in advance for any help.

    You can not use the EX operator in that case, because that is used only for node existence checks, not for value checks.
    Do you have a row number in your structure ? Then you could write the xpath expression with that counter tag and value
    Example: you want to send to receiver A if count > 3, else to B:
    you set  /rowNumber EQUAL 4 for sender A
    and /rowNumber NOT EQUAL 4 for sender B
    The condition is applied to the whole document. If one of the node/values are true for that condition, then the whole condition is set to true.
    Problem with that is that the second condition also will be true because nodes for that condition will be found
    better would be to have a rowcount tag in the structure. If that is not possible, you can use the "Enhanced Receiver determination" where you can define a mapping which determines the receivers. There you can do anything complicated you want.
    CSY

  • AirPort Express (Problems with multiple remote speakers

    I've been so far successfully using several AirPort Express base stations to stream music from Itunes to differant rooms in my house. A week ago I suddenly started getting an error message ("Unknown Error -3256) when attempting to stream to multiple rooms. Anyone else having this problem all of a sudden? I've gone thru the configuration for Airport and each base station and everthing seems to be in order.... Any ideas... Anyone? thanks

    A lot of people including myself have been having problems with the airport. We think it's the AirPort update or the security update that is causing problems. If you're experiencing problems or slow downs with your internet then that's also part of the update. Wait till the next update or we find a workaround to this problem.

  • Airport Express problem with iMac G5 iSight - help needed!

    I bought an Airport Express (AX) last week, upgraded my OS to Leopard and installed Airport Utility fine. I could join my existing wireless network and everything worked fine for streaming itunes through my stereo. But this week Airport Utility has stopped being able to find the AX and I can't work out why - really need some help! Its in the same place as last week, close to the computer, and I tried another location right next to the Imac but didn't work. When I restore factory settings Airport Utility does recognise the device, and allows me to update settings for wirelessly connecting to my existing wireless network, so the light on the AX is solid green. But then AU again says it cannot find any AX wireless device. Can anyone tell me what I'm doing wrong???

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • Regular expression breaks with \00 in input string

    I wrote the following code to illustrate the problem.
    Clearly the match should occur in both cases, but it does not occur if \00 is in the input string (within the < > ).
    I am not even searching for \00 or \01. This makes the regular expression match rather useless if you have text that contains data in hex form. I am using Labview 8.2. Is this a known bug? Is there a work around?
    Tammo
    Message Edited by Tammo on 03-06-2008 12:26 PM
    Message Edited by Tammo on 03-06-2008 12:26 PM
    Attachments:
    RegEx1.vi ‏56 KB
    BlockDiagram1.jpg ‏18 KB
    FrontPanel1.jpg ‏18 KB

    There was a brief discussion on this not too long ago.

  • Interesting Regular Expression Problem

    Hi - I am fairly new to Java, but have some reg exp experience.
    Basically, I would like a regular expression to strip elements out of a text format. The elements are delimited by curly braces, very similar to Java. The problem is that the elements may contain other elements - the format is hierarchical. I need to extract the whole element, including its children.
    For example, I need to extract the B element from
    [A]
    a1     1
    a2     2
    b1     1
    b2     2
    [C]{
    c1     1
    c2     2}
    [C]{
    c1     3
    c2     4}}
    and the answer should be
    b1     1
    b2     2
    [C]{
    c1     1
    c2     2}
    [C]{
    c1     3
    c2     4}}
    The nature of the format is not fixed - I won't know how many child elements the B element contains.
    Can this be done using regular expressions, or do I have to write a custom string handling function?
    Thanks for any help.
    Mark

    :-) And I still don't understand it!It's quite easy though ;-) Suppose a word w is generated by some grammar.
    If this grammar is regular you can write word w as xyz where y is not the empty
    word and |x| < p. if w is generated by a regular grammar then xy^nz
    (n occurrences of y) can also be generated by the same grammar. That's
    the 'pumping' giggle part.
    Now suppose the language of nested parentheses is a regular language.
    All you have to do is find a word w = xyz where xy^nz is not part of the language.
    Let w= ((())) and x= ((, y= ( and z= ))), obviously xy^nz is not a properly nested
    parentheses word for n > 1. Note that every generated word in that language,
    long enough has to have that value p, where xy^nz |x| < p and xy^nz in the language.
    The pumping lemma giggle for context free languages is almost the same:
    you have to find two positions where the pumping fails/succeeds.
    kind regards,
    Jos (huhuh, he said 'pumping' ;-)

  • Regular expression problem?

    Hi I have a file which contains the following text
    <cfset objNews.strNewsTickerLink =
    "index.cfm?pageid=83">
    Now what i'd like to do is to scrape out the value of this
    variable i.e. 'index.cfm?pageid=83'. Now this variable can be
    different.... so basically whatever the value of the variable
    objNews.strNewsTickerLink is set to.. I'd like to get it out. Now
    I'm not that great with regular expressions... can anyone help me
    out?
    Thx

    Hi,
    One way of handling that is to use this UDF,
    http://cflib.org/udf/queryStringGetVar
    But, you must be aware of the url variable that comes after
    "?" symbol in order to use the above udf. If it is dynamically
    generated you need to write your own regular expression.
    HTH

  • Regular expression substitution with escaped $

    I'm looking to perform a substitution (along the lines of String.replaceAll()) that matches with the character $. I have tried $, \$, \\$, and variations thereof in the regex string utilizing String.replaceAll() and with a Pattern.compile(). In both cases I get an "Illegal repetition near index X" error. Anyone have suggestions as to escaping the $ character for regular expression substitutions?
    Edited by: dolcraith57 on Dec 6, 2007 11:18 AM

    It would help if you'd post details--e.g. original string and desired result, with an explanation of the rules.
    str1 = "a$1$2$b$";
    str2 = str1.replaceAll("\\$", "X"); // aX1X2XbX
    str3 = str1.replaceAll("\\d", "\\$"); // a$$$$$b$

  • Find/replace and regular expression problem

    Hello, i'm using find and replace with a regular expression
    for the first time. I have it checkmarked and it's finding my text
    but it's missing (not highlighting) the ')' at the end of the line.
    Here's my code:
    [($[0-9]+<font size="-2">US</font>)]
    it's supposed to find everything inside the square brackets -
    but it misses the closing parenthesis after </font>. I need
    to find this string and replace with nothing to remove the string
    from any/all pages. Is there a reason why it's missing the closing
    parenthesis? I was actually able to add a few more parenthesis
    (e.g. "))))") before OR after the closing square bracket and it
    still found the original text minus the closing bracket and the
    extra parenthesis didn't prevent the text from being found.
    Any help is appreciated!
    James...

    WyattEA wrote:
    > Hello, i'm using find and replace with a regular express
    for the first time. I
    > have it checkmarked and it's finding my text but it's
    missing (not
    > highlighting) the ')' at the end of the line. Here's my
    code:
    >
    > [($[0-9]+<font size="-2">US</font>)]
    That's not how square brackets work
    Try:
    \(\$\d+<font size="-2">US</font>\)
    A left parens, followed by the dollar sign, followed by at
    least one
    digit, followed by <font size="-2">US</font>,
    followed by a right parens.
    Mick
    >
    > it's supposed to find everything inside the square
    brackets - but it misses
    > the closing parenthesis after </font>. I need to
    find this string and replace
    > with nothing to remove the string from any/all pages. Is
    there a reason why
    > it's missing the closing parenthesis? I was actually
    able to add a few more
    > parenthesis (e.g. "))))") before OR after the closing
    square bracket and it
    > still found the original text minus the closing bracket
    and the extra
    > parenthesis didn't prevent the text from being found.
    >
    > Any help is appreciated!
    >
    > James...
    >

  • Time Capsule/AirPort Express problem with DHCP server

    Hi everyone,
    I seem to be having some weird issue with my home network.  I use a Time Capsule (2011) as my main router and a new AirPort Express as a wireless bridge (router set to "Extend a wireless network", the LAN port is connected to network printer).  Recently, it seems that at least once or twice a week that the DHCP server on my router stops working.  Computers that have static IP addresses have no problem accessing the internet or my local network, but  devices that don't have static IPs  are unable to join the network (over Wi-Fi or ethernet) because they are not being assigned an IP.  This never happened before.  I'm not sure if it has anything to do with the recent firmware update.  Anybody else seem to be having this problem?  I am able to get the DHCP server working again by restarting the Time Capsule or by setting the computer or device that won't connect to a static IP.  Really curious why this seems to be happening…
    Thanks for all the help guys

    I am having the same problem with the same setup: a 2011 Time Capsule and an Airport Express. I've had my Aiport Express hooked in for about 2 years, so I know it is not the problem. The only difference I have is the DHCP will stop working on the ethernet, but still work over WiFi from the TC. Rebooting the Time Capsule fixes the DHCP issue.
    I am running version 7.6.4 in the Time Capsule.

  • Airport Express Problems with restarting

    Hi there,
    I am having a problem with my Airport Express every time I try to change settings when it updates and restarts the Airport Express cannot be found by the Airport Utility.
    Background:
    I have not used my Airport Express for about a year or so now.. but have pulled it back out to use on a new computer hooked up for media but does not have wireless. I was going to use the Airport Express to connect to my existing wireless network and then hook the new computer through the ethernet connection. But I cannot seem to get the Airport Express to cooperate and update and then restart, every time I do that it is undetectable by the airport utility. I have tried doing hard resets and factory resets on the airport. Has anyone else ran into any problems like this?
    Thank you

    cr3at1ve wrote:
    I am having a problem with my Airport Express every time I try to change settings when it updates and restarts the Airport Express cannot be found by the Airport Utility.
    Background:
    I have not used my Airport Express for about a year or so now.. but have pulled it back out to use on a new computer hooked up for media but does not have wireless. I was going to use the Airport Express to connect to my existing wireless network and then hook the new computer through the ethernet connection. But I cannot seem to get the Airport Express to cooperate and update and then restart, every time I do that it is undetectable by the airport utility. I have tried doing hard resets and factory resets on the airport. Has anyone else ran into any problems like this?
    Welcome to Apple's discussion groups.
    Please supply some details about the rest of your local network, including brand(s) and model(s) of your Wi-Fi equipment, including your AirPort Express. Configuring a Wi-Fi network with multiple base stations can be tricky. The details you need will depend on the particulars of your equipment.

  • Regular expression evaluation with logical operator

    Hi All,
    I am bit confuse with expression evaluation with logical operator. I am trying to understand below expression.
    eXa.getTrue() && eXa.getFalse() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as false and True Count: 1 False Count: 3
    As per understanding it should be true with True Count: 1 False Count: 3
    it should execute 1st getTrue() and then 1stGetFalse() and then 2nd getfalse() and should skip 2nd getTrue() and execute 3rd fetFalse()
    eXa.getTrue() && eXa.getTrue() || eXa.getFalse() && eXa.getTrue() || eXa.getFalse() comes as true and True Count: 2 False Count: 0
    As per understanding it should be true with True Count: 3 False Count: 0
    it should execute 1st 2 getTrue() and skip 1st getFalse() and then execute 3rd getTrue() and skip last getFalse().
    eXa.getTrue() || eXa.getFalse() && eXa.getFalse() || eXa.getTrue() && eXa.getFalse() comes as true and True Count: 1 False Count: 0
    As per understanding it should be true with True Count: 2 False Count: 2
    it should execute 1st getTrue() and skip 1st getFalse() and then execute 2nd getFalse() and then execute 2nd getTrue() and then 3rd getFalse()
    Please help me to understand above expressions.
    Here is the methods definition:
    private boolean getTrue() {
              trueCount++;
              boolean retrunValue = 4 > 3;
              return retrunValue;
    private boolean getFalse() {
              falseCount++;
              boolean retrunValue = 3 > 4;
              return retrunValue;
    Thanks for ur help

    >
    adding parenthesis to make order of ops more obvious. adding "?" to show un-executed calls.
    (eXa.getTrue() && eXa.getFalse()) || (eXa.getFalse() && eXa.getTrue()) || eXa.getFalse()  comes as false and True Count: 1 False Count: 3
    (T && F) = F
    (F && ?) = F
    (F) = F
    F || F || F = F
    (eXa.getTrue() && eXa.getTrue()) || (eXa.getFalse() && eXa.getTrue()) || eXa.getFalse()  comes as true and True Count: 2 False Count: 0
    (T && T) = T
    (? && ?) = ?
    (?) = ?
    T || ? || ? = T
    eXa.getTrue() || (eXa.getFalse() && eXa.getFalse()) || (eXa.getTrue() && eXa.getFalse())  comes as true and True Count: 1 False Count: 0
    (T) = T
    (? && ?) = ?
    (? && ?) = ?
    T || ? || ? = T

Maybe you are looking for

  • Recording MIDI and Audio at the same time....

    I am having an issue recording a simple piano softsynth along with a guide vocal. Whenever I punch in, the audio punches fine but the MIDI/softsynth track hiccups, causing a lag in sound even though the MIDI info seems to record fine. Also, this does

  • Didnt find Javascript console in Acrobat 9.1

    Hi I want to use acrobat javascript editor but i didnt find any javascript console or javascript editor to start javascript in Acrobat. I didnt get debugger also . Searched in Advanced tab and also enabled Javascript editor--> Editor-->preferences-->

  • What can filter data in a cube ?

    I have the following problem. I have 2 cubes based on the same datasource view. When I browse a certain dimension (just the dimension), they show different records. In one of the cubes some records seem to be filtered out I assumed this was probably

  • Flash CC Extensions

    Hi, Extension Builder 3 now has support for Flash CC, but I have been unable to get an extension working.  The problem is that Flash CC does not support HTML extensions yet.  You can go through the motions (like building the default new project templ

  • Elitebook 2760p Ericsson hs2340 WWAN device recognition problem in Windows 8

    Hi, I installed an ericsson hs2340 WWAN card in my Elitebook 2760P and it worked great, even in Windows 8.  Recently, I was managing my HP updates and flashed the bios update.  When the update was done my WWAN card was gone... well, mostly gone.  I c