How to use AND,OR,NOT condition in Pattern Matching in java

how to use AND,OR,NOT condition in Pattern Matching in java
Please anyone give example..

Stop asking these stupid vague questions and do some of your own research.
Start here:
http://www.regular-expressions.info/
http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

Similar Messages

  • I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?

    I do not use and do not want an iCloud account and I keep getting requests to sign in....how do I stop the request?

    If you bought the machine new yourself, and did not enter a password when configuring it, leave the field blank.
    If you bought it used, then you need to reset the password, as described here:
    Apple Article to reset the password

  • How to use i for if condition in a for i in loop?

    Hi friends,
    I have a question on how to use i for IF condition in a loop, in order to get an efficient programming and results. Here is outlined SQL:
    cursor is
    select c1,c2,c3 from table1; -- 100 rows returned.
    open cursor
    loop
    fetch c1,c2,c3 into v1,v2,v3;
    for i in 1..3 loop
    if 'v'||i between 90 and 100 then
    v_grade := 'Excellent';
    elsif 'v'||i between 80 and 89 then
    elsif 'v'||i between 50 and 59 then
    end if;
    end loop;
    close cursor;
    This way, I don't need to use a lot of if..then for hard code v1,v2,v3,.... actually I have more v..
    But Oracle gave an error of this usage of 'if 'v'||i' or 'v'||to_char(i).
    Thanks for any advice in advance!

    user508774 wrote:
    Thanks for comments and advices. But I didn't get your inputs clearly. Are you saying I don't need to use PL/SQL to achieve this?Correct. Ronel and John showed you the basic approaches. SQL is not a mere I/O language for making read and write calls. It is a very capable, flexible and powerful language. One can solve a problem with a few lines of SQL code, that will take 100's of lines of PL/SQL or Java code.
    So do not underestimate what can be done in SQL.
    v_cmd := 'UPDATE parts_categ_counts SET w1='||v1||', w2='||v2||...||v9||' WHERE seq='||vseq||';
    EXECUTE IMMEDIATE v_cmd;This code is also wrong. Besides the fact that there is no need for dynamic SQL, this approach creates a brand new SQL statement each loop iteration.
    SQL is source code. It needs to be parsed (compiled). The end result is an executable program that is called a cursor. This cursor needs to be stored in server memory (the SQL Shared Pool in the SGA).
    The problem with your code is that it is slow and expensive - it generates lots of unique SQL statements that need CPU for parsing and server memory for storage.
    These add up to a very significant performance overhead. That is the wrong approach. The correct approach is the same one that you would use in any other programming language.
    Let's say you need to use Java to process a bunch of CSV files - exact same CSV layout used by each file. A file needs to be read, processed, and a log file created.
    Will you write a Java program that loops through the files, for each file found, write a Java program for processing that file, compile it, then execute it?
    Or would you write a Java program that takes the name of the file as input, and then process that file and writes the log file?
    The 2nd approach provides a program that can process any of those CSV files - one simply needs to pass the filename as an input parameter.
    Your code and approach use the 1st method. Not the 2nd. And that is why it is wrong.
    To create a SQL program with parameters is done by using bind variables. Instead of
    v_cmd := 'UPDATE parts_categ_counts SET w1='||v1||', w2='||v2||...||v9||' WHERE seq='||vseq||';
    The following SQL source code should be created:
    v_cmd := 'UPDATE parts_categ_counts SET w1=:v1, w2=:v2 ..., w9=:v9 WHERE seq= :vseq';
    The tokens with the colon prefix (such as :v1), are bind variables. Think of these as the parameters to the SQL cursor.
    The server parses this SQL into a cursor. You can now execute the same cursor over and over again, using different bind variables. (just like the 2nd approach above that one would use in Java)
    In PL/SQL, this is made even easier as you can code native SQL code with PL/SQL code and use PL/SQL variables in it. The PL/SQL compiler is clever enough to do the SQL parsing, variable binding, and cursor execution for you. So in PL/SQL, you would use:
    UPDATE parts_categ_counts SET w1=v1, w2=v2 ..., w9=v9 WHERE seq= vseq;
    Where v1 and the others are PL/SQL variables.
    That all said - PL/SQL is only used for data crunching, when the processing of data is too complex for the SQL language to deal with. And this is very seldom the case.
    The main reason for using PL/SQL it to provide processing flow control, conditional processing and error handling, for SQL code. As the SQL language does not have these features.

  • How to use complex function as condition in Oracle Rule Decision Table?

    How to use complex function as condition in Oracle Rule Decision Table?
    We want to compare an incoming date range with the date defined in the rules. This date comparison is based on the input date in the fact & the date as defined for each rule. Can this be done in a decision table?

    I see a couple of problems here.
    First, what you posted below is not a syntactically valid query. It seems to be part of a larger query, specifically, this looks to be only the GROUP BY clause of a query.
    Prabu ammaiappan wrote:
    Hi,
    I Have a group function in the Query. Below is the Query i have used it,
    GROUP BY S.FREIGHTCLASS,
    R.CONTAINERKEY,
    S.SKU,
    S.DESCR ||S.DESCRIPTION2,
    S.PVTYPE,
    RD.LOTTABLE06,
    R.WAREHOUSEREFERENCE,
    RD.TOLOC,
    R.ADDWHO,
    R.TYPE,
    S.CWFLAG,
    S.STDNETWGT,
    S.ORDERUOM,
    R.ADDDATE,
    C.DESCRIPTION,
    (CASE WHEN P.POKEY LIKE '%PUR%' THEN 'NULL' ELSE to_char(P.PODATE,'dd/mm/yyyy') END),
    NVL((CASE WHEN R.ADDWHO='BOOMI' THEN RDD.SUPPLIERNAME END),SS.COMPANY),
    RDD.BRAND,
    S.NAPA,
    RD.RECEIPTKEY,
    R.SUSR4,
    P.POKEY,
    RDD.SUSR1,
    r.STATUS, DECODE(RDD.SUSR2,' ',0,'',0,RDD.SUSR2),
    rd.SUSR3Second, the answer to your primary question, "How do I add a predicate with with a MAX() function to my where clause?" is that you don't. As you discovered, if you attempt to do so, you'll find it doesn't work. If you stop and think about how SQL is processed, it should make sense to you why the SQL is not valid.
    If you want to apply a filter condition such as:
    trunc(max(RD.DATERECEIVED)) BETWEEN TO_DATE('01/08/2011','DD/MM/YYYY') AND TO_DATE('01/08/2011','DD/MM/YYYY')you should do it in a HAVING clause, not a where clause:
    select ....
      from ....
    where ....
    group by ....
    having max(some_date) between this_date and that_date;Hope that helps,
    -Mark

  • "is in use and could not be ejected"

    I want to eject an external hard drive (actually my time machine hard drive). Time Machine is finished but the drive activity has not and is sucking the speed out of my computer (as it always does when Time Machine is active).
    When I try to eject the hard drive, it tells me it "is in use and could not be ejected"
    The drive is not in use. All I have open is Safari, TextEdit and Word. All documents are on my main hard drive. How do I find out what program it THINKS is using it, or do I just have to give up and lose all my pages of information?
    This is actually a continuing problem. I hate to lose all my data to keep restarting the computer because of this drive.

    If you have the problem where you can’t empty the Trash or eject a disk because something is preventing you? Usually the reason is because some application has a file open, and thus you can’t get rid of the disk or trash the file. Then use What’s Keeping Me! What’s Keeping Me will identify the application that is preventing you from accomplishing your task. You can then use What's Keeping Me to quit, relaunch, or kill the problem application so you can get on with your business. http://www.hamsoftengineering.com/products/wkm/wkm.html
     Cheers, Tom

  • How to create and share notes in icalendar

    how to create and share notes in icalendar
    i have created a reoccuring all day event for monday thru friday throughout the month.
    Each day I write notes in the event. I do not want the notes to duplicate each day.
    Now do I set up so notes for that day is only in that day.
    thank you
    angelscott1

    Hi Parga,
    You need to declare the variable at Interface controller and need to map this at the context level.
    Like a variable declared at web dynpro component context level can be used among all views.
    every web dynpro component have an Interface component. this can be used in other components where this perticular component is used it is also have a Context.
    For more info Take Usage of Component Controller Examples.
    [Check this thead|http://help.sap.com/saphelp_nw70/helpdata/en/3a/165da11551994db913f56829f8f3f1/frameset.htm]MPUSAGE
    WDR_TEST_CMPUSAGE_CI1
    WDR_TEST_CMPUSAGE_CI2
    WDR_TEST_CMPUSAGE1
    WDR_TEST_CMPUSAGE2
    WDR_TEST_CMPUSAGE3
    WDR_TEST_CMPUSAGE4
    WDR_TEST_CMPUSAGE5
    WDR_TEST_REF_CMP_USAGE_CI
    WDR_TEST_USAGE_GROUPS_CI
    WDT_COMPONENTDETAIL
    WDT_COMPONENTUSAGECheerz
    Ram

  • "One or more pages are in use and could not be deleted" - AGAIN.

    Open a PDF file.
    Save it under a different name
    Try to delete a page
    You'll get this error:
    "One or more pages are in use and could not be deleted"
    I've had this billions of times now and the only solution that works 100% of the time is closing and re-opening the file. This leads me to believe it's something with "locking" the file while saving, but not unlocking it after done saving.
    GET THIS FIXED PLEASE because it's annoying LOADS and LOADS of people.
    As evident by the 7000+ search results for the exact phrase "One or more pages are in use and could not be deleted".
    And that's just the part of the userbase that actually reports the problem.
    There are several topics about this issue, some marked as "solved" erroneously.
    Note, I'm a paying customer, use Photoshop/Illustrator/Dreamweaver/Fireworks and Bridge during my daily work, and have had this issue for months and months across several different computers (two different workplaces, and at home) and have ran into this time and again, when all I want to do is cut a PDF into several smaller PDFs.
    Closing and re-opening your program because you're unable to fix this issue is NOT ACCEPTABLE. It's THE WORST kind of user experience, as this issue is the ONLY reason I use Acrobat at all, and it can't even do that.
    Cheers,
    - Dirk
    Ps.: Sorry, I'm very frustrated running into this time and again, and then having to wade through thick mud (your site is a UX nightmare) to report this issue, which has been report oodles of times on this board before.

    Yup.  I get this problem too.  And I'm posting in April of 2015, so I see this problem has existed a long time.  Acrobat "Pro" (ha ha) is full of stupid, annoying problems.  And the interface is clunky.  I'm going use PDF Split and Merge to remove the page I'm struggling with.  Ridiculous that Adobe Acrobat Pro cannot remove one page from a PDF file.  I am NEVER upgrading this product.  I am done with Adobe.

  • Itunes stops working after say half hour of use and will not play next song, the only way to get it working again is to close and reopen, then it works fine till next time, but the problem keeps returning

    itunes stops working after say half hour of use and will not play next song, I have to close and reopen, it works fine till next time, it keeps happening on a regular basis, HP pavilion laptop, g6 series,
    Window 7 64 bit

    Hello davewood26,
    The following article provides steps that can help get iTunes stabilized.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

  • When I try to delete page(s) from a PDF document I created, I geth the following message: "One or more pages are in use and could not be deleted." Any suggestions?

    When I try to delete page(s) from a PDF document I created, I geth the following message: "One or more pages are in use and could not be deleted." Any suggestions?

    I sent an email to TerraGo Support and they sent the following response: "This has bug has been discovered and our development team is quickly creating a patch to resolve the problem. The patch should be available within a week or two. For your reference, the bug number assigned to this case is: 3620. Check back in about two weeks and hopefully the patch will be available. Again, I apologize for the inconvenience."

  • Error message: libsmime3.dylib is in use and will not allow update

    I tried to download the new firefox 5.0, for Mac OS10
    when I put it into the application folder the error message showed up:
    libsmime3.dylib is in use and would not allow new version to replace old
    I have restarted the computer several times and still the same

    I found [http://siliconchaos.blogspot.com/2010/08/installing-firefox-4-beta-2-error-on.html this blog post] when trying to look up that error. Looks like a common cause of the error is programs like Evernote, Dropbox or Cisco's AnyConnect VPN Client. Try disabling those (the blog post has instructions) if a simple delete/replace doesn't help.

  • How to Use and Filter Table contents after execution of Bapi

    Can anybody guide me how to Use and Filter the table Contents which i got after successful execution of a Bapi
    I used Component Controller in my Project
    Ex: My table contains Redundant data for a single column but i want to display the column contents with out Redundancy
    Name
    Raghu
    Raghu
    Raghu
    Debasish
    Debasish
    I want to filter the table contents and i want to display the table with out Redundancy
    and Even when i am using a Dropdown i selected a Column  from a Table as the values for that Dropdown  but that table is having redundant data and the same data is getting displayed in that Dropdown i want the Dropdown to display data with out redundancy
    Thanks

    I also got that problem recently and after debuging for a while I figured out, that it was resulting from an error in my table's model: When the model received new items to display I
    1.) Fired an delete event for the old items
    2.) Fired an insert event for the new items
    Problem was that when firing the delete event I didn't already assigned the new items to the model. Therefore it had still the old row count.
    Maybe you have also a faulty table model?...

  • Adobe standard 9 "one or more pages are in use and could not be deleted"

    I am an experience user from 4 to now 9 standard.  At work when extracting pages from a block scan I keep getting "one or more pages are in use and could not be deleted" it does not extract the pages but deletes some and leave some in the master document.  This happens on a regular basis and is so frustrating when trying to split a block document into individual ones. This is on adobe 9 professional... Process is 3500 pages document, open up the page tab to see the pages. Highlight the first and last page of the document you want to extract. Right click and select extract, tick the box delete after extracting.  Some times it works and a lot of the time I get the error above.  I have google’d this error and there seems to be no feedback to cover the reason as to why it creates this error and what does it mean?
    Thanks

    I use this feature once a month to extract / delete some 200 pages from an 800 page file. I found the release notes for 10.1.4 stated that this issue was fixed. I updated my Acrobat to the 10.1.4 release and i was still having the problem. I finally fixed it by disabling the Win XP compatability feature that i had enabled in the properties of the Acrobat executable. I had enabled this feature a couple of months ago as a fix to this specific problem, now it's not necessary.
    Environ: Win 7 32-bit and Acrobat X, 10.1.4.

  • Adobe Pro delete pages error. One or more pages are in use and could not be deleted.

    Adobe Pro delete pages error. One or more pages are in use and could not be deleted.
    Hi, can anyone assit. I am compiling a pdf by inserting several documents and am unable to delete specific pages. I have used this function on a previous Adobe Pro version but have a problem editing.

    I use this feature once a month to extract / delete some 200 pages from an 800 page file. I found the release notes for 10.1.4 stated that this issue was fixed. I updated my Acrobat to the 10.1.4 release and i was still having the problem. I finally fixed it by disabling the Win XP compatability feature that i had enabled in the properties of the Acrobat executable. I had enabled this feature a couple of months ago as a fix to this specific problem, now it's not necessary.
    Environ: Win 7 32-bit and Acrobat X, 10.1.4.

  • Bought used and do not know administrator password?

    Bought used and do not know administrator password. Please help?

    This worked for me on a MacBook from late 2008
    1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter
    This will let you create a new admin account when you reboot your computer.

  • I have the advanced calling on my glaxay note 4 but am not sure on how to use and who i can call please help!?

    I have the advanced calling on my galaxy note 4 but am not sure on how to use it or who I can call I watched video's that show me but it doesn't work please help! 

    This is also known as VoLTE or Voice over LTE.  Like Vonage, but for cell phones.  Advanced calling is turned on or off in your phones settings, usually near Call/Phone option.  It allows an HD quality call between you and another Verizon customer who is using an AC-enabled phone.  It also allows you to talk and surf simultaneously and conduct video calls.  This AC requires Mobile Data to be on when out and about but can still be used on WiFi.The min do not count toward your data, however the video counts toward your data.
    Some customers report poor call quality or dropped and missed calls when using this newer feature.  Disabling AC usually helps quell those issues.

Maybe you are looking for

  • My old pc is not working how to sync to a new  without lossing my music

    I can't add more music to my iphone because is sync to my old laptop that is not working any more there is a way so I can sync to my new pc?

  • Search logic absent in RFAVIS40??

    Hi, We use the normal lockbox program RFEBLB30 to post the lockbox transmission from customers who send us EDI 820. However, we have some customers on ACH for which we only receive an excel file and using this information , we create the payment advi

  • ActiveX and wmode issue

    I just implemented the swfobject javascript fix to work around the IE/ActiveX issue. Everything was working great except that when I tried running my flash in IE, my flash was no longer transparent. It is transparent in firefox, but not in IE. Here i

  • Web Object Widget non-functional?

    Hello again! So I'm trying to use the web object widget to pull up a surveygizmo survey (which provides handy web links, HTML embeds, java embeds etc.), but it's not loading up. It works only when in previews within Captivate. Once published, it does

  • Problem printing color only prints Black

    My printer does not print the colors it shows in the display that they in and installed correctly but do not print out on the info page .It only prints out black.Example if I print a coupon the stuff on it that is in color is just blank