Validate through Reg Expression

Hi,
I have following requirement to be achieved through reg expressions.
Need to write a boolean method which takes a String parameter that should satisfy following conditions.
o 20 character length string.
o First 9 characters will be a number
o Next 2 characters will be alphabets
o Next 2 characters will be a number.(1 to 31 or 99)
o Next 1 character will be an alphabet
o Last 6 characters will be a number.
JDev 11.1.1.6.0

Hi,
Hope following links are useful
https://blogs.oracle.com/shay/entry/regular_expression_validation
http://www.vogella.com/articles/JavaRegularExpressions/article.html

Similar Messages

  • CFINPUT Reg Expression Validation Pattern Help

    I've got a form with a non-required field that needs to meet
    some validation requirements (Numbers, Letters, 'space character'
    or 'blank, empty string' only) if the user chooses to fill it
    out...
    I'm using CFINPUT tag with the following settings, does my
    Reg Expression pattern look OK?
    REQUIRED="No"
    VALIDATE="regular_expression"
    PATTERN="^[a-zA-Z *]{1,40}$"
    MAXLENGTH="40"
    Thanks for any help. I'm v. new to regular expressions (10
    hrs education at Google Univ.)
    Sincerely,
    Paul Cross

    I think you want something more like this:
    ^[a-zA-Z0-9 ]{0,40}$

  • No colors when printing through AirPort Express?

    I knew I couldn't use all the features (e.g. scanning) of my HP all-in-one printer F2180 through AirPort Express instead of USB. But is it normal I can't print in colors? Can it be fixed?

    I am having the same problem. I am running an AirPort Extreme to a HP Deskjet F4180.
    I spent two weeks on the phone and email with HP and they finally told me that it was a problem with Apple.
    I just got off the phone with Apple support and they told me it is a driver issue which they have no control over. They told me to see if somebody in this forum had a work around or to search the web for a generic driver that "may" fix the problem.
    If I find an answer I will let you know.
    Good luck!!

  • Can't connect to internet through Airport Express anymore

    Suddenly, my PowerBook can't connect to the internet through Airport Express. Monday late afternoon--everything was fine. Put it in sleep, come back a few hours later, can't connect.
    Thing is, Airport/wireless is working. Can stream audio to my home stereo.
    And the DSL/modem are working. If I connect the machine via ethernet directly, I'm online.
    Saw that some other users began having problems with USB/printer connections Monday. Could my problem be related?
    What gives?
    Any ideas?

    Hello mnkyby. Welcome to the Apple Discussions!
    It sounds like your AirPort Express Base Station (AX) in not getting a proper IP address from your modem.
    Try this ...
    o Connect to the AX's wireless network, and then, run the AirPort Admin Utility.
    o Go to the Internet tab.
    o Note the value for IP address. (Note: Do not list it here on the forum, just note what it is.)
    o Is the IP address what you would expect from your ISP or is it something like: 196.254.x.x?
    If the latter, try the following ...
    Modem/Router Power Recycling - Quick
    o Power-off the DSL/Cable modem, AX, & computer(s); Wait at least 5 minutes.
    o Power-on the DSL/Cable modem; Wait at least 5 minutes.
    o Power-on the AX; Wait at least 5 minutes.
    o Power-on the computer(s)
    If this fails to get the modem to "recognize" the Internet router, then try the "Full" version.
    Modem/Router Power ReCycling - Full
    o Power-off the DSL/Cable modem, AX, & computer(s). (Wait at least 30 minutes. If possible, leave the modem off overnight.)
    o Power-on the DSL/Cable modem; Wait at least 15 minutes.
    o Power-on the AX; Wait at least 5 minutes.
    o Power-on the computer(s)

  • When I connect my iphone directly to my receiver then connect to spotify, it plays through both speakers but when I connect wirelessly through airport express it only comes out through one speaker. Any thoughts?

    When I connect my iphone directly to the receiver through a cable, it plays Spotify just fine but when I try to play wirelessly through Airport Express, it only plays through one speaker. Any thoughts?

    yeah, that's what I figured.. I guess I'll try now to figure out exactly how to do that!

  • Vendor Master copying through Copy Express

    Hi Experts,
    I am copying from One Database to a NEW Database ( this database has diffrent configuration ) the Vendor Master Data through Copy Express but while runing the Copy Express I am getting an error as 'Bank does not exsits in the company'. In the Base Company Database from where I am copying has a diffrent bank acccount but in the NEW Database which is created is a another company and has diffrent bank account hence I cannot keep the same bank account as in the Base Compnay Database.
    Please let me know how to achive a soltuion to it.
    Regards,
    Kawish

    Dear Vijay,
    Please note that the folowing details as required by you.
    SAP Version - 2005B
    Patch level 39
    When executing the query from query generator as SELECT * FROM T0.BankCountr, T0.BankCode,T0.DflAccount,T0.DflBranch FROm OCRD T0 I am getting value in Default Bank as -1 and and rest coloumn are blank.
    If I create manually the House Bank Account in the target company ( which means I create the base company bank account in the target company ) then upload may be done but one have to then manually change in the vendors BP master the target company bank account which is a tedious task.
    Hope you are able to give a proper solution in this regard.
    Regards,
    Kawish
    Edited by: Rui Pereira on Apr 29, 2009 1:50 PM

  • Send email using Oracle Forms 6i through Outlook Express

    I am working on oracle Forms 6i and Oracle 9i (9.2.0.1) database. My requirement is How to trigger email sending single client at a time while using Oracle Forms 6i through Outlook Express?
    To do this I have written the following code.
    PROCEDURE send_mail IS
    OutlookApp OLE2.OBJ_TYPE;
    NameSpace OLE2.OBJ_TYPE;
    MailItem OLE2.OBJ_TYPE;
    OLEPARAM OLE2.LIST_TYPE;
    Send OLE2.OBJ_TYPE;
    Attachments OLE2.OBJ_TYPE;
    Attachment_dummy OLE2.OBJ_TYPE;
    var1 varchar2(1000);
    Begin
    var1 := :mapiole.message;
    OutlookApp := OLE2.CREATE_OBJ('Outlook.Application');
    OLEPARAM := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(OLEPARAM,'MAPI');
    NameSpace := OLE2.INVOKE_OBJ(OutlookApp,'GetNameSpace',OLEPARAM) ;
    OLE2.DESTROY_ARGLIST(OLEPARAM);
    OLEPARAM := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(OLEPARAM,0);
    MailItem := OLE2.INVOKE_OBJ(OutlookApp,'CreateItem',OLEPARAM);
    OLE2.DESTROY_ARGLIST(OLEPARAM);
    OLE2.SET_PROPERTY(MailItem,'To',:to);
    OLE2.SET_PROPERTY(MailItem,'Subject',:subject);
    OLE2.SET_PROPERTY(MailItem,'Body', var1);
    --add an attachment
    if :mapiole.attach is not null then
    Attachments := OLE2.GET_OBJ_PROPERTY(MailItem,'Attachments');
    OLEPARAM := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(OLEPARAM,:attach);
    Attachment_dummy := OLE2.INVOKE_OBJ(Attachments,'add',OLEPARAM);
    OLE2.DESTROY_ARGLIST(OLEPARAM);
    end if;
    Send := OLE2.INVOKE_OBJ(MailItem,'Send');
    --destroy objects
    OLE2.RELEASE_OBJ(MailItem);
    OLE2.RELEASE_OBJ(NameSpace);
    OLE2.RELEASE_OBJ(OutlookApp);
    END;
    Create a block called MAPIOLE with the following canvas layout:
    To:      ============================
    Subject: ============================
    Message: ============================
    ============================
    Attachment: ============================           SEND      
    When I press the SEND button then
    Error comes "FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception
    ORA-305500
    How can I do this?
    When I use Microsoft Outlook 2003 It works fine.
    Please help me.
    Thanks.

    Error comes "FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception
    ORA-305500
    hi
    plz if there is any attach library recompile it or open the pll and compile it with ctrl+shift+k and ctrl+t.
    sarah

  • Reg expression help

    Can/will you help me make a regular expression for these characters? I want to replace eveyone occurance in a string contianing these chars
    \/:*"<>|
    with
    right now I am doing a string.replaceAll(...) on each char but I was wanting to combine that to one reg expression. What cha got? I am doing this b/c I am generating file names and those are not valid chars allowed in file names.
    Thanks
    Doopterus

      String regex = "[*<>/'\"\\\\]";In a character class (i.e., between the square brackets), "|" has no special meaning.

  • HT1595 I have just bought apple tv which allows me to play music through airport express but when  chose to watch a movie the audio comes from the tv and does not give option listen through other speakers served through airport express. Can you help me ?

    I have just bought apple tv which allows me to play music through airport express but when  chose to watch a movie the audio comes from the tv and does not give option listen through other speakers served through airport express. Can you help me ?

    No, you cannot seperate the audio and video stream.
    You can use optical audio to a sound system (I use sony sound bar) and play the audio via that.
    jules

  • Can i copy udf's from one company to another through COPY EXPRESS

    Hi Experts ,
                      I have to copy my Item Master's  UDF's  data from one company to another company through Copy Express. The Item Codes are same . But it's not working
    Need Solution.
    Regards

    Check for the EES and other documents in the Landing Page of Copy Express Add-on
    [http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000706509&_SCENARIO=01100035870000000183&_ADDINC=011000358700001192682007E&_OBJECT=011000358700003716502006]

  • Is there a way to play my macs computer audio through airport express?

    I have a stereo receiver that only plays through the auxillary port, and i have been using airport express to play my music and movies in itunes through it. Some of my other movies however are neither in itunes or playable through itunes. Is there a way to send the computer's audio output (not just itunes) through airport express and thus into the stereo receiver? Much help would be appreciated, thanks!

    Try using Airfoil.
    (62000)

  • Transfering Sequences (Setup- Financial- Tax- Sequence)Through Copy Express

    Hi Everyone,
    Could anyone suggest how to transfer Sequences set in 1 Database to another Database through Copy Express? I can't find the option for Sequence transfer in Copy Express.
    Thanks,
    William

    Hi Everyone,
    Is there any way to transfer Sequences (Setup->Financial->Tax->Sequence) to another Database? Cause I cannot find any template for Sequences in DTW and also cannot find the Sequence option in Copy Express.
    Thanks,
    William

  • Volume inaudible through airport express

    Playing iTunes library through an airport express connected to stereo set up is virtually inaudible. I have to max the amp volume to hear a tinny output through Bose home speakers. I had the setup working about 18 months ago, but something changed overnight, and even replacing the airport express has not rectified the sudden volume reduction. I've tried a PRAM reset.
    Any thoughts? I am desperate!

    Hi I have solved the problem for my Ipod touch to switch from ipod to hifi set up through Airport Express
    I was unaware that to switch while in itunes playlist that I need to swipe from the bottom upwards which then presented a menu and there was my logo to switch from ipod to hifi. Simple is't it.
    Thanks for your help.

  • HDMI connection through PCI Express X-Fi Titanium Fatal1ty Pro Series and Nvidia GTX 2951

    Hello,
    I want to connect HDMI connection through PCI Express X-Fi Titanium Fatalty Pro Series and Nvidia GTX 295\but i cant tell which of the pins on the Audio Card is the Spdif.

    CRe: Mic not working (PCI Express X-Fi Titanium Fatalty Pro Series)? Hello,
    Thanks for the reply.
    The headset is connected via the 3.5mm jacks in the card.
    I believe I have it working now. I ended up having to unstall the drivers and software, reboot, install drivers and software and then mess with the settings. The only issues that I am having now is that I hear a a really high sort of feedback/hiss tone from the headphones now. To correct this I have to turn the input for the microphone down really low within the Windows 7 controls for the microphone and turn it up with Ventrilo to get the mic to work and remove the feedback/hiss.
    I believe that the issue stems from the flexjack setting. The whole flexjack thing really seems to mess with the microphone settings. I believe I choose line-in instead of microphone.
    Once I get home tonight from work, I will hopefully post the exact settings I came up with to get the mic to work.

  • Syncing iphone and computer through Airport Express?

    Hi,
    I have a 3G iPhone, a MacBook Pro and an Airport Express. I was wondering if I could sync my calendar and contacts through the airport express (wirelessly) instead of actually connecting the the two by USB cable? I can control iTunes via my iPhone so I should also be able to get them syncing stuff like iCal and Contacts na?
    thanks

    I forgot to mention my limited knowledge of iphone technology - so I have no clue what your answer means.  I literally need someone to walk me through this step by step.

Maybe you are looking for

  • Dual monitor setup broken in Leopard

    There are numerous problems running an external Cinema Display from a MacBook Pro using Leopard. I've tried with 2 MacBook Pros (one 15", one 17") and 2 different Cinema Displays (24" and 30"). Not to mention everything was fine under Tiger. Both Leo

  • Changing BOM-items in Process Order not allowed

    that Hello, Mi client is asking me if it is posible, once created a Process Order, upon modifying the order (COR2), that the user can not change any of the cuantities and batches of the material list (BOM) updated in the Process Order. Is there any w

  • DBMS_LDAP package

    Hi, Please, where can I find the DBMS_LDAP package. I've Oracle 8.1.7 with Win2000? Am I oblige to install Oracle Internet Directory to use it? Thanks.

  • Connect ipod to computer, connect ipod to computer

    Hello, Just got my mac back from the apple store they had to wipe my hard drive and reset it, unforunately all my music and photos were only saved to my iPod hich now It wont sync to my itunes since it doesnt match or something. Does anyone have any

  • ACS database

    Hi, I have ACS and is running with windows database integration. But i have some issue the users are created in active directory and then acs ask if the user exists and then it hold the users mappings in his own database (normal operation) but the qu