Reg-ex balanced parentheses

Is it possible to compose a regular expression, using
Pattern and Matcher objects, in order to obtain the String:
"(ONE TWO (THREE) FOUR)" from the String:
"BEGIN (ONE TWO (THREE) FOUR) END" ???
thank's,
Mark.

Is it possible to compose a regular expression, using
Pattern and Matcher objects, in order to obtain the
String:
"(ONE TWO (THREE) FOUR)" from the String:
"BEGIN (ONE TWO (THREE) FOUR) END" ???I hate to say it, but no this isn't possible. Regular expressions are a representation of regular grammars ('type 3 grammarss'). These grammarss 'can't count'. You'll need a context free grammar ('type 2 grammar') in order to recognized nested balanced parentheses.
kind regards

Similar Messages

  • Reg: Trial balance report for 2009 year

    Hi Consultants,
    We have requirement to report the GL Trial balance for 2009 year .
    Any one can provide me a query or advice me as it is urgent
    Thanks in Advance
    Anu.

    Hello Anu.
    There are standard reports providing the Trial Balance. It is also easy to buid a query to produce it. Do you need some special information?
    Octavio

  • Reg asset balances

    Hello All,
    I want to know the field names and tablenames used in asset balances report in tcode(s_alr_87011967).
    Pls help its urgent
    Thnks,
    Vibha

    Hi
    Check the Tables
    <b>ANLA
    ANLB
    ANLC
    ANEK
    ANEP</b>
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Reg Load Balancing

    Hi,
    How to configure server side load balancing.
    I saw two types Load based and Session based.
    How to specify the options for the both
    I know by setting parameter load_balance=on will enable in tnsnames.ora file.
    whether above parameter enable client side load balancing or server side load balancing
    Suggest me any document which explains both with example.
    Thanks
    Krishna

    Hi Aman,
    Your thoughts on the below Statements.
    Setting the REMOTE_LISTENER parameter has the following effect -
    The PMON process on that node will register with the remote listeners specified in the REMOTE_LISTENER value.
    This means PMON process will update the remote listeners about the work load status on the local node.
    When REMOTE_LISTENERS are set on all nodes, all PMON processes register with all other listeners.
    When the client makes a connection and the connection goes to a specific listener (either using load_balance on or off),the listener that accepts the connection will check the load on all nodes to see which is the least loaded.
    The listener is able to do this since PMON processes from all nodes have updated the listener about the statuses.and that listener will redirect the connection to the node with the least load and start a dedicated process on that node .
    Now how does the PMON know which is the least loaded machine.
    It gets the information from the FAN framework and load balance advisory.
    FAN framework consists the following processes
    MMON,PMON,ONS and AQ. (ONS is specific to Java clients and AQ is specific to ODI.Net clients)
    Load Balancing advisory calculates the goodness of a node and forwards to MMON.
    MMON builds the advisory and forwards it to PMON. And thus PMON is able to update all the listeners.
    Setting the REMOTE_LISTENER parameter has the following effect -
    The PMON process on that node will register with the remote listeners specified in the REMOTE_LISTENER value.
    This means PMON process will update the remote listeners about the work load status on the local node.
    When REMOTE_LISTENERS are set on all nodes, all PMON processes register with all other listeners.
    When the client makes a connection and the connection goes to a specific listener (either using load_balance on or off),the listener that accepts the connection will check the load on all nodes to see which is the least loaded.
    The listener is able to do this since PMON processes from all nodes have updated the listener about the statuses.and that listener will redirect the connection to the node with the least load and start a dedicated process on that node .
    Now how does the PMON know which is the least loaded machine.
    It gets the information from the FAN framework and load balance advisory.
    FAN framework consists the following processes
    MMON,PMON,ONS and AQ. (ONS is specific to Java clients and AQ is specific to ODI.Net clients)
    Load Balancing advisory calculates the goodness of a node and forwards to MMON.
    MMON builds the advisory and forwards it to PMON. And thus PMON is able to update all the listeners.
    Regards
    Krishna

  • Reg-Opening balances

    Dear all
    In my client place I have created Opening balaces(debtors) & Opening stock a/c under assests head,Opening balances(creditors) under Liabilities head.P&L a/c under equity head.
    Now I have posted opening balances in to this accounts but to nullfy this accounts should i pass journal entry like as below
    Opening balances (creditors)   Dr   100000
    Opening balances (creditors)                        100000
    or
    P&L account   Dr 100000
    Opening balances(creditors)   100000
    Please kindly suggest the correct and best way.
    Regards
    M Auditya

    Hi Auditya
    Go to
    Administration -
    > System Initilation -
    > Opening Balances.
    Select G/L Opening Balance or Business Partner Opening Balance according to your requirement.
    in opening Balance account
    select G/L Opening Balace Acct if it is a G/L opening Balace
    select BP  Opening Balace Acct if it is a BP  opening Balace
    Select Acct to which you are entering opening Balances.
    If it is Debit enter in +ve Value
    If it is Credit enter in -ve Value
    I think it will help you
    Regards
    Siva Reddy

  • How to check code for syntax errors

    How do I check or validate my html code in dreamweaver. I wish to see if all the braces and tags are closed or not
    please guide me

    Hi There:
    You can check to make sure the tags, parentheses (( )), braces ({ }), and square brackets ([ ]) in your page are balanced. Balanced means that every opening tag, parenthesis, brace, or bracket has a corresponding closing one, and vice versa.
    Check for balanced tags
    Open the document in Code view.
    Place the insertion point in the nested code you want to check.
    Select Edit > Select Parent Tag.
    The enclosing matching tags (and their contents) are selected in your code. If you keep selecting Edit > Select Parent Tag, and your tags are balanced, eventually Dreamweaver will select the outermost html and /html tags.
    Check for balanced parentheses, braces, or square brackets
    Open the document in Code view.
    Place the insertion point in the code you want to check.
    Select Edit > Balance Braces.
    All of the code between the enclosing parentheses, braces, or square brackets is selected. Choosing Edit > Balance Braces again selects all of the code inside the parentheses, braces, or square brackets that enclose the new selection.
    And also make sure to validate your HTML code at - http://validator.w3.org/
    Regards
    Vinay

  • 1Z0-007 syllabus

    Hi
    in the introduction to oracle 9i study materials it contains 20 chapters
    but in the exam topics section , it contains only 12 sections. (first 12 chapters of the book)
    URL: [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_007|http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_007]
    So is tht means exam question will only concentrate on first 12 chapters of the study material
    thanks

    Zerandib wrote:
    Hi
    in the introduction to oracle 9i study materials it contains 20 chaptersObviously you have a particular item in your possession, others who may try to help have to guess exactly what you have.
    but in the exam topics section , it contains only 12 sections. (first 12 chapters of the book)
    URL: [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_007|http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_exam_id=1Z0_007]
    This is a good and exact and authorative reference to what is in the exam. Very occasionally these topics change, but I would anticipate them to be fairly for 9i.
    (As an example the 10g 1z0-042/1z0-043 topics changed when the exam went from a 10gR1 based exam to 10gR2 based exam)
    >
    So is tht means exam question will only concentrate on first 12 chapters of the study material
    Hopefully you can work this out with reasonable certainly
    If their is an obvious 1-1 mapping between the exam topics and your first 12 chapters ... then bingo! (ie I mean you have a high confidence probability)
    And if later chapters do not relate to exam topics then your confidence level should increase further (they may relate to another exam, their content may imply this)
    At the end of the day you should be confident you have the exam topic covered (though trying to determine what is meant by an exam topic (and depth required) can sometimes be difficult without interpretation).
    Rgds - bigdelboy
    thanksEdited by: bigdelboy on 29-Jul-2009 02:06 ( typo corrected(s) ... balanced parenthesis ... etc)

  • CREATE TYPE prob?

    Environment: XE 10g, WinXP SP2
    As described in another thread, I'm trying to get a PHP application to run against an Oracle database. In that application it tries to run a few CREATE TYPE statements. Those statements are failing with "ORA-24344: success with compilation error".
    The failing statement is:
    create or replace type BIT_OR_IMPL as object (
      val NUMBER,
      static function ODCIAggregateInitialize(sctx IN OUT BIT_OR_IMPL)
        return number,
      member function ODCIAggregateIterate(self IN OUT BIT_OR_IMPL,
        value IN number) return number,
      member function ODCIAggregateTerminate(self IN OUT BIT_OR_IMPL,
        returnValue OUT number, flags IN number) return number,
      member function ODCIAggregateMerge(self IN OUT BIT_OR_IMPL,
        ctx2 IN BIT_OR_IMPL) return number
    )I'm new to Oracle, but that statement appears to be syntactically OK... balanced parentheses, etc.
    Then I took that statement and tried to run it in a SqlPlus script:
    g2user/g2pwd
    set echo on;
    drop type BIT_OR_IMPL;
    create type BIT_OR_IMPL;
    --create or replace type BIT_OR_IMPL as object ( val NUMBER, static function ODCIAggregateInitialize(sctx IN OUT BIT_OR_IMPL) return number, member function ODCIAggregateIterate(self IN OUT BIT_OR_IMPL, value IN number) return number, member function ODCIAggregateTerminate(self IN OUT BIT_OR_IMPL, returnValue OUT number, flags IN number) return number, member function ODCIAggregateMerge(self IN OUT BIT_OR_IMPL, ctx2 IN BIT_OR_IMPL) return number );
    commit;
    quit;But for some reason SqlPlus just sits there expecting more input:
    C:\MyServer>sqlplus @temp.sql
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 23 00:00:29 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL>
    SQL> drop type BIT_OR_IMPL;
    Type dropped.
    SQL>
    SQL> create type BIT_OR_IMPL;
      2  --create or replace type BIT_OR_IMPL as object ( val NUMBER, static functio
    n ODCIAggregateInitialize(sctx IN OUT BIT_OR_IMPL) return number, member functio
    n ODCIAggregateIterate(self IN OUT BIT_OR_IMPL, value IN number) return number,
    member function ODCIAggregateTerminate(self IN OUT BIT_OR_IMPL, returnValue OUT
    number, flags IN number) return number, member function ODCIAggregateMerge(self
    IN OUT BIT_OR_IMPL, ctx2 IN BIT_OR_IMPL) return number );
      3
      4  commit;
      5
      6  quit;  // <-- It hangs here until I kill it with Ctrl-C, then it continues
      7
      8  Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 -
    Production
    C:\MyServer>I even trimmed down the CREATE TYPE statement to almost nothing, and it always hangs.
    Is there a problem here, or am I doing something wrong?
    Thanks.

    I already know the statement works fine through SqlPlus... I need to find out why it's being rejected by Oracle when issued via the PHP application. So I'm trying to come at it backwards... if I can find out what the syntax error is, perhaps I can spot it in the application.
    Here's the result of 'SELECT * FROM USER_SOURCE':
    SQL> select * from user_source;
    NAME                           TYPE               LINE
    TEXT
    BIT_OR_IMPL                    TYPE                  1
    type BIT_OR_IMPL as object (
    BIT_OR_IMPL                    TYPE                  2
      val NUMBER,
    BIT_OR_IMPL                    TYPE                  3
      static function ODCIAggregateInitialize(sctx IN OUT BIT_OR_IMPL)
    NAME                           TYPE               LINE
    TEXT
    BIT_OR_IMPL                    TYPE                  4
        return number,
    BIT_OR_IMPL                    TYPE                  5
      member function ODCIAggregateIterate(self IN OUT BIT_OR_IMPL,
    BIT_OR_IMPL                    TYPE                  6
        value IN number) return number,
    NAME                           TYPE               LINE
    TEXT
    BIT_OR_IMPL                    TYPE                  7
      member function ODCIAggregateTerminate(self IN OUT BIT_OR_IMPL,
    BIT_OR_IMPL                    TYPE                  8
        returnValue OUT number, flags IN number) return number,
    BIT_OR_IMPL                    TYPE                  9
      member function ODCIAggregateMerge(self IN OUT BIT_OR_IMPL,
    NAME                           TYPE               LINE
    TEXT
    BIT_OR_IMPL                    TYPE                 10
        ctx2 IN BIT_OR_IMPL) return number
    BIT_OR_IMPL                    TYPE                 11
    11 rows selected.Shouldn't there be a "create or replace " at the front of the statement text?
    Coincidentally, the length of line 1 without those (missing?) characters is (drum roll please)... 29.
    So, can I conclude that the missing 3 words is the problem?
    Message was edited by:
    lmenard

  • I have been with Verizon since 1995 (I was an employee for years). I attempted to upgrade 2 of the 4 lines on our account today, but couldn't. We have an outstanding balance (though we have received no past due notice via mail, email, or text and make reg

    I have been with Verizon since 1995 (I was an employee for years). I attempted to upgrade 2 of the 4 lines on our account today, but couldn't. We have an outstanding balance (though we have received no past due notice via mail, email, or text and make regular payments every month) that I would love to pay, but our bank account number was stolen, so we can't access our account until Monday. Because we were unable to pay our outstanding balance, we were told we can't order the phones today during the special promotion (that ends today). No one can help us, though we have no way of doing anything until Monday when our bank reopens and can reimburse us for the money that was stolen from us. No one in customer service can help us (they can't process the order but not ship until after we make payment on Monday, they won't honor today's promotion on Monday due to our special circumstance, nothing). They stated that "corporate" makes the rules and they have no idea how I can reach corporate to discuss the matter. Without the promotion, we will be charged full price for the phones on Monday, which will cost us an additional $300.00. Any help would be appreciated. Thanks.

    I hope that you aren't complaining about dropped calls INSIDE your condo because no amount of switching or upgrading devices will solve that.
    VZW will not guarantee service inside of any structure. There are just too many factors. If the problem is inside then you might want to look at one of the following:
    1.) Network Extender (may cause issues for others in a condo or apartment style setting)
    2.) A Google Voice Number (Free with a Gmail email address), downloading Google Hangouts Dialer and forwarding your calls to the GVN so that you can make and receive calls over Wi-Fi.

  • Reg balance Carried forward in F.27 Accounting Statement Print

    Hi experts,
    We have generated a SAP Script for Accounting Statement print ( F.27 ) for vendors. We have used structure RF140 for
    the necessary fields. For balance carried forward, SALDO in RF140 structure( balance in document currency ) gives
    me the correct value. But i'm unable to trace whether the balance carried forward is debit or credit. How to check whether
    this balance is debit or credit.
    Thanks in Advance.
    Regards,
    Farhanaz.

    hi ,
    check tcode FK10 might help you.
    regards
    Prabhu

  • DOWN PAYMENT BALANCE TRACKING -REG

    Dear All,
    I have the following query with regard to the down payment balances.
    Down payments are being processed to vendor based on the Purchase Order,  Once the Invoice is received and the Down payment is adjusted .  At times  there may be  Balance of down payment  against the vendor.
    When next Purchase order is released and down payement are being paid, is there any procedure in SAP wherein the residual balance in the earlier down payment is being adjusted.
    Also  can you please  explain how the find out the ageing analysis for the Down payment made to all the vendors.
    Thanks and REgards,
    c.m.sathish kumar.

    I understand when down pament request is made the entry comes.
    Dr. Advance A/c 100
    Cr. Vendor A/C.   100
    When Iv is posted Advance is credited.
    Gr IR / Ac Dr. 200
    Cr. Advance account 100
    Cr. Vendor account   100
    So i understand you want to have ageing of advance paid but not adjusted against invoice.
    Go FBL3n for Advance GL account. if you have maintained vendor no as sort key in GL ( advance) . Then  download all feild in excel . Crete pivot table in excel.
    Use posting date , Assignment feild , posting key & amount in pivot table.
    Then where you are seeing 100 Dr but no corresponding Crt that will show the advance not adjusted. You can do ageing with help of excel also.

  • Reg Recon Account and local balances in creating account

    Hi all can anybody help me...i am getting the following error when i am creating the GL ac for Vendor Recon ac,(only balance in local currency is selected) ...."Balances for reconciliation accounts only in local currency not defined" Message No fh061, however when i deselect the 'only balance in local currency' system is allowing me to save. should we not select 'only balance in local currency for recon accounts?'
    Are all the balance sheet accounts should be maintained in Local Currency? if so in above why system is restricting me.
    Detail explanation is well appreciated.
    Thanks

    F1 Help
    Indicator: Only Manage Balances in Local Currency
    Indicates that balances are updated only in local currency when users post items to this account.
    Use
    You would set this indicator for accounts in which you do not want the system to update transaction figures separately by currency.
    Setting this indicator for accounts managed on an open item basis affects the clearing procedures. See the example below.
    Procedure
    Set the indicator in cash discount clearing accounts and GR/IR clearing accounts. It cannot be set in reconciliation accounts for customers or vendors. Setting it in all other instances is optional.
    It is usually set for particular balance sheet accounts including:
    Accounts which are not managed on an open item basis and not kept in foreign currencies.
    Accounts which are managed on an open item basis and have the same types of items posted in different currencies, but always allow clearing to be made if the local currency amounts correspond.
    Examples
    You set up a clearing account for goods receipts and invoice receipts and manually post these items to it. You post invoice receipts in the invoice currency and goods receipts always in the local currency.
    Invoice receipt            1000 DEM       600 USD
    Goods receipt                              600 USD
    Both items can be cleared if the clearing account balances are recorded in local currency only. If you have not set the indicator for this account, the system will translate DEM to USD during the clearing procedure in order to determine the amount in USD required to clear 1000 DEM. If the translation rate is .65 USD per DEM, then the system displays 650 USD for the invoice receipt and 600 USD for the goods receipt when the open items are processed.
    This means that to clear both of these items, you will also have to enter a difference posting for 50 USD, and the system will automatically make an additional exchange rate difference posting for this amount.
    Makes Business sense as the customer an vendor accounts will have itmes with various currencies posted to it

  • Balance in transaction currency - J2IUN - REG

    Hello,
    Iam getting an error "balance in transaction currency' in transaction J2IUN,  can someone tell me what would be the cause for this and how to handle this?
    Thanks & Regards,
    Kapoor

    Hi
    There could be multiple reasons for the same. They are listed in the order of chances of occurence:
    1. You have not defined the Transactions correctly for excise Transaction type UTLZ
    2. You have not selected the amount to be offset against the liability.
    3. In case your available credit is less than Liability, you have to first pass PLA entry.
    Regards
    Sanil Bhandari

  • Reg F-32 to clear the Customer Account Balances

    Dear experts,
    My requirement is that i need to clear the customer account balances . It can be cleared manually thru tcode F-32. But i need to automate the process by writing BDC or BAPI or any FM.
    Pl help me by providing some inputs on that. Also help me by suggesting how i can do that.
    tks in advance,
    ram

    i am also having same requirement.but the logic is becoming too complex because single document number for clearing the open items.for a customer we can have n number of invoices and n number of payments.based on the base line date,assignment and xref3.
    18.05.2010   DZ  2000
    18.05.2010   DR 1000
    18.05.2010   DR   200
    20.05.2010   DZ  2000
    20.05.2010   DR  1000
    20.05.2010  DR      200
    now we are creating 2 documents for 18.05.2010 and 20.05.2010 .but customer expects to create single document or both.
    then we have to handle table control.page down and page up.
    is the process folowing is correct or we have to create individual documents or single document

  • Reg. Problem for fetching Opening Balance of an Account

    Hello Friends,
    In a report i hv to display the data for Opening balance of account according to input date..
    so plz tell me the some FM if available for getting data fro Opening balance of an account.
    its urgent
    Marmik

    Hi
    U can use the BAPI BAPI_AR_ACC_GETOPENITEMS (for customer account) and BAPI_AP_ACC_GETOPENITEMS (for vendor account).
    Anyway you should consider that Opening balance of account according to input date, are:
    - The totals of all open item posted before inpu date,
    - the totals of all cleared item posted before input date, but cleared after input data.
    See also the BAPIs BAPI_GL_GETGLACCBALANCE, BAPI_AR_GETGLACCBALANCE and BAPI_AP_GETGLACCBALANCE.
    Max

Maybe you are looking for