MDS Business rule regular expression to validate code to be combination of two attributes

Hi
I need to have a business rule as below:
entity1 have code, Attr1 and Attr2
I have to ensure code is always combination of Attr1 and Attr2. If either of the Attr1 or Attr2 is blank, validation should fail.
I tried below possibilities:
1. Set Code to Auto generate
2. Change tracking enabled for Attr1 and Attr2
and below BRs:
1. Attr1 has changed in group 1 AND (Attr2 has changed in group 1) then action:     Code equals a concatenated value Attr1 + Attr2
2. Attr1 is equal to Blank OR Attr2 is equal to Blank then action:     Attr1 is required
    Attr2  is required
3. Code must be unique Attr1 ,Attr2
I see BRs 1 and 2 working. I have BR 3 to fail validation in case BR1 fails resulting code to remain auto generated value.
but i dont see BR-3 working. At the end teh result is code with auto generated value validation is success.
Is there a way i can overcome this issue?
Any idea of referring attrbitues in Regular expression of this sort... to set Code equals to [Attr1] + [Attr2]?

OK I bit the bullet and contacted support on this one.
There is a known issue with MDS 2012 and business rules with a combination of "must be unique" attributes. If you do not list the attributes in the same order that they were created you will get the generic error I cited. At first they told me it must be
in the same order the attributes are in and that worked on one entity but not the other. The difference was that in the second entity I previously rearranged the attributes in question. Once I changed the order in the business rule to reflect the *original*
order it worked like a champ.
Hopefully this helps save someone some time and money.

Similar Messages

  • Regular Expression TO validate column name

    Hi All
    I want to write a regular expression to validate column names.i.e enterted name should follow the valid column name convention
    contain only A–Z, a–z, 0–9, _, $, and #
    Please someone help me to do this.
    Padma

    Hi,
    I would write it that way :SQL> with t as (
      2          select 'ABC$DEF1' cname from dual
      3          union all select 'ABC#DEF2' from dual
      4          union all select 'ABC_DEF3' from dual
      5          union all select 'ABC_#$x4' from dual
      6          union all select 'abc_def5' from dual
      7          union all select 'ABCDEFG%' from dual
      8          union all select 'ABC*DEFG' from dual
      9  )
    10  select cname
    11  from t
    12  where not regexp_like(cname,'^[_#$[:alnum:]]+$') ;
    CNAME
    ABCDEFG%
    ABC*DEFG
    2 rows selected.You could also add some length condition in the regexp if your convention is supposed to enforce any.
    Just my 2 cents :
    DBMS_ASSERT.SIMPLE_SQL_NAME looks good +(I didn't know that package)+ but it would allow double quoted names with "unwanted" characters inside. Even if valid for the RDBMS maybe it's not ok regards to the OP's naming convention :SQL> l
      1  with t as (
      2     select '"Name with blank spaces"' cname from dual
      3     union all select '"Name with @ stuff"' from dual
      4     union all select '"Name with ~ stuff"' from dual
      5  )
      6  select DBMS_ASSERT.SIMPLE_SQL_NAME(cname) checked
      7* from t
    SQL> /
    CHECKED
    "Name with blank spaces"
    "Name with @ stuff"
    "Name with ~ stuff"
    3 rows selected.I guess this procedures lacks some option parameter to specify what is valid or not.
    +(I hate to see column names with blank spaces in it)+
    (^_^)
    More seriously, if the point is to follow a chosen namig convention, I guess it would make more sense to have it explicitly written by the owner.
    (You can't say how the DBMS_ASSERT package will evolve in futures RDBMS releases).

  • Regular expression to validate mail addresses

    I�m trying to create a regular expression able to validate mail address in a JFormattedTextField.
    I�m using the format defined in the java.util.regex.Pattern class.
    my current guess:
    "[[[a-zA-Z]+[0-9]*_*]+@[[a-zA-Z]+[0-9]*_*]+;]+"

    Have a look here:
    http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/
    There's an example mail validation program (not complete)

  • Business rule in MDS 2012 error: A database error has occurred. Contact your system administrator.

    I get the following information in my MDS log as well as the above error message when I execute a business rule that has a condition of AND and an Action of Attribute must be unique in combination with 2 other attributes. 
    I'm running SQL Server 2012 11.0.3000
    MDS database version 11.1.0.0
    Any ideas?
    MDS Error: 0 : SqlException message: A database error has occurred. Contact your system administrator.
       at Microsoft.MasterDataServices.Core.DataAccess.DbHelper.HandleExceptions(Exception ex)
       at Microsoft.MasterDataServices.Core.DataAccess.DbHelper.ExecuteDataSet(String spName, CloseConnectionBehavior closeBehavior, Object[] parameterValues)
       at Microsoft.MasterDataServices.Core.DataAccess.MasterDataAccess.<>c__DisplayClass5.<ValidateEntityMembers>b__4()
       at Microsoft.MasterDataServices.Core.DataAccess.DbHelper.ExecuteMethodWithDeadlockProtection(MethodDelegate method)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Validations.ValidateMembers(Int32 versionId, Identifier entityIdentifier, IList`1 memberIds, RequestContext context, OperationResult results)
       at Microsoft.MasterDataServices.Core.BusinessLogic.Validations.Process(ValidationProcessCriteria criteria, Boolean commitVersion, Boolean validateEntityAsync, Boolean returnValidationResults, RequestContext context, OperationResult results)
    SQL Error Debug Info: Number: 208, Message: Invalid object name 'cteDuplicates0a070e37b106b9e3efe35a455076efa7'., Server: SQLRS-01, Proc: udp_SYSTEM_3_38_CHILDATTRIBUTES_ProcessRules, Line: 230
    SQL Error Debug Info: Number: 266, Message: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1., Server: SQLRS-01, Proc: udp_SYSTEM_3_38_CHILDATTRIBUTES_ProcessRules, Line: 230
    SQL Error Debug Info: Number: 266, Message: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1., Server: SQLRS-01, Proc: , Line: 0
    SQL Error Debug Info: Number: 266, Message: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1., Server: SQLRS-01, Proc: udpBusinessRule_AttributeMemberController, Line: 0
    SQL Error Debug Info: Number: 266, Message: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1., Server: SQLRS-01, Proc: udpValidateMembers, Line: 0
        DateTime=2013-08-15T13:25:15.6684023Z
    MDS Error: 0 : <ArrayOfError xmlns="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Error>
        <Code>208</Code>
        <Context i:nil="true" />
        <Description>A database error has occurred. Contact your system administrator.</Description>
      </Error>
    </ArrayOfError>
        DateTime=2013-08-15T13:25:15.7152026Z

    OK I bit the bullet and contacted support on this one.
    There is a known issue with MDS 2012 and business rules with a combination of "must be unique" attributes. If you do not list the attributes in the same order that they were created you will get the generic error I cited. At first they told me it must be
    in the same order the attributes are in and that worked on one entity but not the other. The difference was that in the second entity I previously rearranged the attributes in question. Once I changed the order in the business rule to reflect the *original*
    order it worked like a champ.
    Hopefully this helps save someone some time and money.

  • How to update the bucketset of business rules in MDS through Rules SDK

    How to update the bucketset of business rules in MDS through Rules SDK.
    Any sample code which will help me........ :)
    Is it possible to expose a Business Rule as webservice which was created with the help of Java fact?
    Edited by: 984804 on Jan 29, 2013 6:12 PM

    FYI, the output of this call returns something like:
    <?xml version="1.0" encoding="UTF-8"?> 
    <queryplan>
        <union>
            <fullOuterJoin>
                <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
            <fullOuterJoin>
                <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
        </union>
    </queryplan>

  • Validate ADF UI field as per Oracle Business Rules

    Hi ,
    I have a requirement where the relationship between the various data fields are defined in Oracle Business Rule 11g inside BPM Project.I need to call these rules on ADF screens for data population.
    Eg, If there are two fields on ADF UI,field1 and fiedl2.
    Possible combinations of the two field are:
    Field1 Field2
    A B
    C D
    E null
    The rules are part of OBPM 11g project as customer can change the rules through composer at run time as per business need.
    How can i achieve this requirement.Please help urgent.
    Regards...

    Hi Daniel
    Lets say i have two attribute 'Product Code' and 'Department id'.The relationship between the two attributes is defined in Oracle Business Rule.
    eg.
    If Product Code is '111' then Department is 'Finance'
    If Product Code is '222' then Department is 'Inventory'
    The values for each of the attribute is defined in a database
    Product Code Table
    Value Description
    111 SalaryAllowance
    222 Current Stock
    Department Table
    Value Description
    Finance Handles Payroll
    Inventory Handles Packaging
    I am displaying these two attribute on the ADF UI as dropdowns. If I select '111' from the product code dropdown then the value in Department dropdown should automatically be set as 'Finance'.I need to trigger the validation/relationship between the attributes from business rules.
    The reason for keeping the relationship in rules is because business wants to change these relationships at run time.
    Hope the scenario is clear to you.
    Regards...

  • BUG?? Syntax Highlighting Regular Expressions

    I'm working on a rather long regular expression in
    dreamweaver code view. It has about 200+ characters in it.
    I wrote it in another application and copied it over for use
    in js, and it wouldn't highlight correctly (sort of like when you
    leave off quote on a string). Naturally I thought I screwed up my
    regexp or forgot to escape a character or something so I went
    through it re-writing it and checking everything but it was
    correct. I saved the page and ran it in the browser and sure enough
    it worked.
    So I started typing the regexp from scratch this time in
    dreamweaver to see when it stopped highlighting correctly. It
    stopped at exactly 100 characters including opening and closing
    forward slashes. I tried writing another exp this time filled with
    just one letter. Again 100 characters exactly - not one more.
    Example:
    var reg1 =
    /ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss ssssssssss/
    var reg2 =
    /ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss sssssssssss/
    reg1 will highlight correctly, while reg2 won't.
    Is this a bug or am I missing something? The highlight rule
    (in Configuration\CodeColoring\CodeColoring.xml) is
    (\s*/\e*\\/
    -or-
    =\s*/ \e*\\ /
    There seems to be no limitation to length there.
    While this is not a huge deal, I might as was well be coding
    in notepad (or my other script editors which highlight this
    correctly) because the highlighting is worthless from this point
    on.
    I could make these strings instead of literals but I have a
    lot of these long expressions and would rather not go through them
    and escape all of my back slashes (there are tons) as well as
    quotes - and make them more un-maintainable as they already are.
    Anyone have this problem? Or a solution to it?

    random_acts wrote:
    > I'm working on a rather long regular expression in
    dreamweaver code view. It
    > has about 200+ characters in it.
    I have never written a regex as long as that, but was
    fascinated by your
    question, so attempted to replicate your problem.
    I gave up at 614 characters, but the syntax coloring didn't.
    I suggest
    that you submit a bug report with the details of your actual
    code:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Using regular expressions for validation in i18n

    Can we use regular expressions for validation of inputs in a java application taking care of i18N aspects too. Zip code for different locales are different. Can we use regular expressions to validate zipcode inputs from different locales

    hi,
    For that shall i have to create individual patterns for matching the inputs from different locales or a single pattern will do in the case of validating phone nos. around the world, zip codes etc. In case different patterns are required, programmer should have a konwledge of difference in patters for different locales.
    regards
    sdas

  • Exception while using Regular Expressions

    Hi, im using the following regular expression in my code for pattern matching.
    REGEXP_LIKE(LLT_NAME,''[^[:digit:]^[:alpha:]]'||l_temp_token||'[^[:digit:]^[:alpha:]]|^'||l_temp_token||'[^[:digit:]^[:alpha:]]|[^[:digit:]^[:alpha:]]'||l_temp_token||'$|^'||l_temp_token||'$'',''i'')
    here, l_temp_token is the string to be matched.
    The problem is when length(l_temp_token) is > 100, it is throwing the following Exception
    ORA-12733 regular expression too long
    But my requirement is, the length of input string can be upto 250
    Do anyone know what is the maximum size for regular expressions or is there any way to increase it?
    Thanks in Advance

    Could explain what rule you're trying to verify with this regular expression? Maybe there's an alternative.
    C.

  • CharAt in a keystroke event using regular expression

    I'm working on a canadian postal code field.  I'm using a regular expression to validate the value.
    //accepts "A9A 9A9", "A9A9A9" or "" as valid entries excluding letters D, F, I, O, Q, U and W as well as Z as the first digit.
    var re = /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$|^$/i;
    if(re.test(event.value) == false){
    app.alert("Code postal invalide", 0, 0,"CODE POSTAL");
    event.value = "";
    I also added a keystroke event to prescan every digit and toUpperCase() them.
    //accepts letters, numbers, backspace or spaces
    var re = /[ABCEGHJKLMNPRSTVWXYZ]|\d|^$|\s/i;
    if (!event.willCommit){
    if(re.test(event.change) == false){
      event.rc = false;
    else{
      event.change = event.change.toUpperCase();
    I want to Replicate the behavior of an arbitrary mask where I can force a character to appear at a specific position.  In this example, instead of letting the user decide wether he adds a "space" or not between the two parts of the code, I want to:
    1-Remove "\s" in the keystroke regexp so the user cannot use "space";
    2-Replace "( )?" for "( )" in the validation regexp;
    3-Force a space at charAt(3).
    Is it possible to have it appear while the user is still typing or is my only option to change the value once committed or as a cutom format script?
    In the same manner, is it possible to specify a different regexp keystroke depending on the position of each character?
    charAt(0), charAt(2), charAt(5) would be letters
    charAt(1), charAt(6), charAt(7), would be numbers
    charAt(3), would automatically add a "space"
    in the end, I want the same behavior as an arbitrary mask without the annoying alert when entering a wrong digit.

    The entire string validation is different from the keystroke validation. The keystroke validation can check each keystroke as it is typed while the string validation can only process the entire string at one time.
    You need to break your RegExp to describe the requirement for each character. You can even specify the possible number of repetitions of the pattern.
    A discussion on to create keystroke validations would be far too long for a post in a forum.
    Acuumnen has an ebook about Acrobat forms and has a couple of chapters to some simple validation and formatting scripts.

  • Is it possible to use "not" logical operator in a Business Rule Condition?

    This seems like a very simple request to me, but I cannot see any other questions/answers about it.
    Can I add a "not" to my Conditions in a Business Rule?
    My scenario is that I have a core Entity with a Type.  The Type is a domain attribute with a Code and Name.  The Code of the core Entity should in the form 'AA-9999', where 'AA' is the Code from Type.
    The idea is that I have a business rule with the condition "not
    Code starts with DBA.Type.Code" and the Action would be "Code is not valid".
    Is this possible?  Is there a better way of implementing this?
    Thanks,
    Michael

    Yeah! This is the board in question! But it has lots of versions, like K7T Pro, K7T Pro2 (my one!), K7T Turbo, K7T Turbo Limited Edition and K7T Turbo2, all of then are WS-6330 Lite...   They phisically diferent, but the BIOS seens to be the same... I want to know is this feature in the newer version is going to work or not on my board (MS 6330 Lite K7T Pro2 Ver:1) ....
    Doesn´t matter what board you choose (PRO, PRO2, Turbo, Turbo2) the MSI page shows all the same BIOS to Download... But I think that this feature is only applicable for K7T Turbo2, but will make no difference in my! At least that´s what I think...
    But you´re right! The board that I have is the one on the link you said!
    Thanks!      

  • Oracle Business Rule  OBR  SOA Suite 11.1.1.3.0

    Hi,
    I have created a business rule and used it in my BPEL process. The business rule example is as follow
    <code> if the state is va then give 10% discount<code>
    If I need to change it to 25%
    Then I would modify the business rule via jdev and redeploy the composite application.
    Question. How can I modify the business rule through the EM?
    I need to modify the rule values without using jdev and redeploying the composite.
    Thanks
    Edited by: 803285 on May 5, 2011 10:37 AM
    Edited by: 803285 on May 5, 2011 10:38 AM

    maybe what you need is ruleauthor:
    http://www.packtpub.com/article/business-rules-define-decision-points-oracle-soa-suite-part1
    but if you use weblogic it's not deployed by default:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28965/faq.htm#CBAFGBIG
    disclaimer: I have never used ruleauthor so don't consider me an expert...

  • Oracle Business Rules with Fusion Release 4

    Hi
    I am wondering if we can use the Oracle Business Rules product with the Oracle Fusion Compensation APplication Release 4.
    Thanks
    Srinivasa Sunchu

    Srinivasa,
    There are relevant chapters in the Oracle Fusion Middleware User's Guide for Oracle Business Rules. There is sample code interspersed in the chapters.
    7 Working with Rules SDK Decision Point API
    http://fmwdocs.us.oracle.com/vol/doclibs/fusionapps/review/E36909_01/user.1111/e10228/decision_point.htm#ASRUG455
    10 Working with Oracle Business Rules and ADF Business Components
    http://fmwdocs.us.oracle.com/vol/doclibs/fusionapps/review/E36909_01/user.1111/e10228/adfbc.htm#ASRUG378
    I looked through the source code of one of our products that uses the Rules SDK to see if there is an easy-to-extract example, but it's far beyond the scope of a forum post. We'll probably create one or more blog posts that dive deeper into this topic, but I cannot promise a date for that. Keep an eye on http://blogs.oracle.com/fadevrel please.

  • Regular Expression Validation

    Hi,
    I'm trying to use a regular expression to validate password.
    I create a validation in my item called P502_PASSWORD. I choose regular expression type. At the Validation Expression 2, I put this expression:
    ^(?=.*\d)(?=.*[a-zA-Z])(?!.*[\W_\x7B-\xFF]).{6,15}$
    So, I tried to enter a valid "string" at this item. For example: abc123
    But it doesn't work and I don't know why. I have another item with a e-mail validation with the expression below, and works:
    ^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$
    So, i really don't know what is happening.
    Can someone help me? :)
    Thanks,
    Vivi

    Hi Vivi,
    I checked your regex with my favourite application and it seems to be correct for a 'liberal' interpreter. But POSIX-implementation in Oracle seems to be quite strict. At least, I get an ORA-12728 ("invalid range in regular expression") when executing your string with "REGEXP_LIKE". I would take the regex apart bit by bit and see when the regex starts to work with REGEXP_LIKE, like in the following example:
    BEGIN
      dbms_output.put_line(case when regexp_like('aBc123','^(((\d)|([[:alpha:]])){6,15})$') then 'hit' else 'miss' end);
    END;
    /This is of course not exactly the expression you wanted, but I guess it's not very far away and produces a 'hit'. ;)
    If anybody finds out what exactly caused the error I'd like to know. My first guess was the asterisk in combination with {6,15}, but just removing it didn't do the trick.
    -Udo

  • Email validation using Regular Expression.

    Hi,
    I am in need of using a regular expression for email valiatino. ^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)$ which is gotten from http://www.regular-expressions.info/email.html .
    This works fine in a regular expression test tool http://regexpal.com/ , but when I use in Oracle, it does not.
    DECLARE
    v_exp VARCHAR2(4000);
    BEGIN
       --v_exp := '^[a-z0-9!#$%&''*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)$';
       v_exp := '^[a-z0-9!#\$%&''*+/=?\^_`{|}~-]+(?:\.[a-z0-9!#\$%&''*+/=?\^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)$';
       dbms_output.put_line(v_exp);
       FOR v_rec IN (
          with test_data as
    ( select '[email protected]'     as val from dual union all
      select '[email protected]'       as val from dual union all
      select 'ad{[email protected]' as val from dual union ALL
      select '[email protected]' as val from dual union all 
      select '[email protected]' as val from dual union all 
      select '[email protected]'      as val from dual union all
      select 'no#good'                  as val from dual
    select
      val ,
      case
        when
          regexp_like
          (val, v_exp,'i') then 'Y'
        else 'N'
        end
        as good
    from test_data ) LOOP
       dbms_output.put_line(v_rec.val||', '||v_rec.good);
    END LOOP;  
    END;   and the results are
    [email protected], N
    [email protected], N
    ad{[email protected], N
    [email protected], N
    [email protected], N
    [email protected], N
    no#good, N
    The expected result should be Y for all but for the last two.
    I am not sure why it is not working in Oracle.
    Can any body please help me to find the mistake and to have it correctly?
    Advance Thanks,
    Natarajan
    Edited by: Nattu on Dec 4, 2012 1:31 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Try this regular expression:
    >> ^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$
    >> [email protected], *Y*
    >> [email protected], *Y*
    >> ad{[email protected], N
    >> [email protected], *Y*
    >> [email protected], *Y*
    >> [email protected], N
    >> no#good, N
    [Using a regular expression to validate an email address|http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address]
    Edited by: stefan nebesnak on 4.12.2012 2:25                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • OA Framework - Help Needed in highlighting one of the rows in Custom Page

    Hi Oracle Gurus, I am new to OAF. I have a requirement like I have to highlight one of the rows in a Custom OA Page. These rows exist in a table structure,they are basically Claim records of the employees. All these rows are from only One View Object

  • Java.lang.NullPointerException in End-to-End monitoring

    Hi! When trying to start End-To-End monitoring over the RWB I get a NUllPointerException from 'JNet' as the applet tries to start up: Class com.sap.jnet.JNetApplet.class not found java.lang.ClassNotFoundException: com.sap.jnet.JNetApplet.class at sun

  • "Ghost" page numbers on every second page - how to remove?

    Hi, I'm setting a short book with Pages and after importing from Word, I'm seeing duplicate, partially hidden additional page numbers on every second page. I'd like to remove them entirely, keeping Pages' page numbering. Removing and inserting page n

  • Making Keyboard Disappear

    How do you make the keyboard disappear when it does not go away on its own, or when you are done?

  • HT1338 iChat

    Why wont ichat open saying I don't have the latest version? Also it won't come up in my updates in my app store ... Any help ??