Check that a string contains data only numbers

Hello

I'm trying to find an elegant way to test an input string "serial number" format A00000000 (where A can be any letter and 0 can be a number any).  My first thought was to check the following features:

(1) total string length = 9.

(2) using the "Decimal String to the Number.vi", result = 0 (which indicates that the string contains no numbers).

(3) using the 'Decimal string to Number.vi' with an offset of 1, the result is a number.

Unfortunately, that does not differentiate between the following strings:

A00005123 valid

Invalid A5123

Invalid A5123B123

Invalid A005123BC

All the world is this recently?  Is there a way to analyze non-specific chips (for example separating the groups of letters, numbers or other?)  Is there a complete way to do this without breaking the chain in 9 individual items and do a comparison of 26 item for the letter and 10 element for each number comparisons?

Thank you

Sean

You can use a regular expression to match the pattern.

Tags: NI Software

Similar Questions

  • Check that a string is a string

    This may seem like a trivial question. I want to check that a string is a string. I thought to use a string method on a variable in a function and catch the exception. I did a little research around Java Platform SE 7. This seems to be a strange thing to do and I thought everything stable and if they fail, it must be a string, but I'd like something specific.

    832844 wrote:
    It's the thought. I wrote a recursive descent parser and verify a constant-> int | text | float

    Ah. So what you want is to find out if your string contains an integer, float or whatever.

    Assuming I'm right, and that the 'text' is equivalent to 'none of the above', can help the Java wrappers:

    public enum Type {INTEGER, FLOAT, TEXT);
    
    public boolean isType(String text, Type type) {
       try {
          switch (type) {
             case INTEGER:
                long i = Long.parseLong(text);
                break;
             case FLOAT:
                double d = Double.parseDouble(text);
                break;
             case TEXT:
                return true;
             default:
                throw new IllegalArgumentException();
          }
       } catch (Exeption) {
          return false;
       }
       return true;
    }
    

    Then just run above against all types except TEXT (or TEXT).

    It is likely to be slow, but its extensible for any type of "analysable" you want to check for, and you can do as specific as you want (the above example is rather crude).
    And I think that it is fairly easy to follow; at least I hope so.

    Winston

  • Test whether the string contains the only slash the other way around?

    Hello

    How do you do that?

    I need to check if

    (a) the string contains two consecutive backslashes

    (b), if not, check if there is at least an oblique bar opposite

    If (test.) IndexOf("\\") > = 0) seems to knock on a string that is 'ss\\ss', but I have a feeling that is incorrect. I think it's really just test for 1 backslash.

    AS3 and don't let you do if (test.indexOf("\") > = 0), as the single backslash escapes the rest of your code.

    It is to test for the existence of a or two backslashes in the ID3 tags, as some editors use as a delimiter for multiple tags within the category of a tag for example kind: rock\\pop, or rock\pop

    Thanks for taking a peek.

    {if(s.IndexOf("\\\")>-1})

    There are two or more backslashes consecutive

    } else {if(s.indexOf("\\")>-1)

    There is that a single backslash

    }

  • check if a string contains only some characters

    I'm working on a java program that converts the Roman numbers. The user enters a string, and I need to check to make sure that it contains MDCLXVI and if he doesn't I will get them the input again string. I thought I'd do a while loop but I'm not sure if it's the smart way to make or the syntax to perform the check.

    Here was a thought on the control with a while loop, but I've never used it before and maybe build evil.
    while (!Pattern.matches("MDCLXVI", firstRoman))
            {
            System.out.print("Not a valid Roman Number please try again");
            firstRoman = firstRoman.toUpperCase();
            }
    My Code is as follows:
    // Ask for user to input firstRoman Number
            System.out.print("Enter your first Roman Number:");
            // add the Roman Number to the String variable
            firstRoman = keyboard.nextLine();
            firstRoman = firstRoman.toUpperCase();
    Once they enter in the it, I want to check to make sure that it has characters MDCLXVI and if it contains any other characters then I will provide a new object Scanner keyboard to try again and if it fails again, it will go to the option to try again until they put in a string that contains only the characters above. I don't know where to go here to get the while loop has worked. New to Java and I got my program work properly when I put good known numbers of novel, but I want to take incorrect entries.

    Any help would be appreciated.

    Thank you
    Wally

    I put the code for my main program and my class below just in case. I have already met the requirements of the teacher if the project is done, I'm just trying to improve.
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package myname.project.pkg6;
    
    import java.util.Scanner;
    import java.util.regex.Pattern;
    
    /**
     *
     * @author wsteadma
     */
    public class mynameProject6 {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            
            // Used for testing
            String firstRoman;
            String secondRoman;
            
            
            Scanner keyboard = new Scanner(System.in);
    
            
            // Ask for user to input firstRoman Number
            System.out.print("Enter your first Roman Number:");
            // add the Roman Number to the String variable
            firstRoman = keyboard.nextLine();
            firstRoman = firstRoman.toUpperCase();
            
                  
            // Ask for user to input secondRoman Number
            System.out.print("Enter your second Roman Number:");
            // add the Roman Number to the String variable
            secondRoman = keyboard.nextLine(); // Add the name input into the name variable
            secondRoman = secondRoman.toUpperCase();
            
            
            //Creating first instance of Roman Numbers class
            Roman firstNumber = new Roman(firstRoman);
            Roman secondNumber = new Roman(secondRoman);
            
            System.out.println("Printout of the created roman numbers");
            //Prints out the Roman Number
            firstNumber.printRoman();
            secondNumber.printRoman();
            
            
            // Convert Roman to Decimal
            firstNumber.setDecimal(firstRoman);
            secondNumber.setDecimal(secondRoman);
            
            System.out.println("Viewing the Decimal values for the two defined instances");
            //Prints decimal Numbers
            firstNumber.printDecimal();  
            secondNumber.printDecimal();
            
            System.out.println("Adding the Roman Numbers and returning new Roman value");
            Roman romanAdd;
            romanAdd = firstNumber.addRoman(secondNumber);
            romanAdd.printRoman();
    
            System.out.println("Subtracting the Roman Numbers and return new Roman value");
            Roman romanSub;
            romanSub = firstNumber.subRoman(secondNumber);
            romanSub.printRoman();
        }
    }
    CLASS:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package myname.project.pkg6;
    
    /**
     *
     * @author wsteadma
     */
    public class Roman {
    
        private String romNumber;
        private int decNumber;
    
        public Roman(String rNumber) {
            romNumber = rNumber;
        }
    
        public String getRoman() {
            return romNumber;
        }
        
        public int getDecimal()
        {
        return decNumber;
        }
    
        public void printRoman() {
            System.out.println("The Roman Number is " + romNumber);
        }
    
        public void printDecimal() {
            System.out.println("The Decimal Number is " + decNumber);
        }
    
        // Converts a roman number string into a decimal value
        public int setDecimal(String romNum) {
            int charValue = 0;
            char[] characters = new char[romNum.length()];
    
            //System.out.println("romNum length is " + romNum.length());
            for (int counter = 0; counter < romNum.length(); counter++) {
                characters[counter] = romNum.charAt(counter);
                //System.out.println(characters[counter]);
            }
    
            for (int sCounter = 0; sCounter < romNum.length(); sCounter++) {
                if (characters[sCounter] == 'M'  || characters[sCounter] == 'm') {
                    charValue += 1000;
                } else if (characters[sCounter] == 'D' || characters[sCounter] == 'd') {
                    charValue += 500;
                } else if (characters[sCounter] == 'C' || characters[sCounter] == 'c') {
                    charValue += 100;
                } else if (characters[sCounter] == 'L' || characters[sCounter] == 'l') {
                    charValue += 50;
                } else if (characters[sCounter] == 'X' || characters[sCounter] == 'x') {
                    charValue += 10;
                } else if (characters[sCounter] == 'V' || characters[sCounter] == 'v') {
                    charValue += 5;
                } else if (characters[sCounter] == 'I' || characters[sCounter] == 'i') {
                    charValue += 1;
                }
            
            }
            decNumber = charValue;
            return charValue;
        }
    
        // Converts a decomal number to a roman number
        public String setDec2Roman(int decNum) {
            String newRoman = "";
    
            while (decNum >= 1000) {
                newRoman += "M";
                decNum -= 1000;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 500) {
                newRoman += "D";
                decNum -= 500;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 100) {
                newRoman += "C";
                decNum -= 100;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 50) {
                newRoman += "L";
                decNum -= 50;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 10) {
                newRoman += "X";
                decNum -= 10;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 5) {
                newRoman += "V";
                decNum -= 5;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum > 0) {
                newRoman += "I";
                decNum -= 1;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
            return newRoman;
        }
    
        public Roman addRoman(Roman newRom) {
            int totRom = newRom.setDecimal(newRom.romNumber) + decNumber;
            romNumber = newRom.setDec2Roman(totRom);
            return new Roman(romNumber);
        }
        
        public Roman subRoman(Roman subRom) {
            int totRom = decNumber - subRom.setDecimal(subRom.romNumber);
            romNumber = subRom.setDec2Roman(totRom);
            return new Roman(romNumber);
        }
        
    }

    While (!.) Pattern.Matches ("MDCLXVI", firstRoman))

    Try "[MDCLXVI] *" and see if it's better

    {
    System.out.Print ("a valid Roman Number please try again");
    firstRoman = firstRoman.toUpperCase ();
    }

    My Code is as follows:

    // Ask for user to input firstRoman Number
    System.out.print("Enter your first Roman Number:");
    // add the Roman Number to the String variable
    firstRoman = keyboard.nextLine();
    firstRoman = firstRoman.toUpperCase();
    

    Once they enter in the it, I want to check to make sure that it has characters MDCLXVI and if it contains any other characters then I will provide a new object Scanner keyboard to try again and if it fails again, it will go to the option to try again until they put in a string that contains only the characters above. I don't know where to go here to get the while loop has worked. New to Java and I got my program work properly when I put good known numbers of novel, but I want to take incorrect entries.

    Any help would be appreciated.

    Thank you
    Wally

    I put the code for my main program and my class below just in case. I have already met the requirements of the teacher if the project is done, I'm just trying to improve.

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package myname.project.pkg6;
    
    import java.util.Scanner;
    import java.util.regex.Pattern;
    
    /**
    *
    * @author wsteadma
    */
    public class mynameProject6 {
    
    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    
    // Used for testing
    String firstRoman;
    String secondRoman;
    
    Scanner keyboard = new Scanner(System.in);
    
    // Ask for user to input firstRoman Number
    System.out.print("Enter your first Roman Number:");
    // add the Roman Number to the String variable
    firstRoman = keyboard.nextLine();
    firstRoman = firstRoman.toUpperCase();
    
    // Ask for user to input secondRoman Number
    System.out.print("Enter your second Roman Number:");
    // add the Roman Number to the String variable
    secondRoman = keyboard.nextLine(); // Add the name input into the name variable
    secondRoman = secondRoman.toUpperCase();
    
    //Creating first instance of Roman Numbers class
    Roman firstNumber = new Roman(firstRoman);
    Roman secondNumber = new Roman(secondRoman);
    
    System.out.println("Printout of the created roman numbers");
    //Prints out the Roman Number
    firstNumber.printRoman();
    secondNumber.printRoman();
    
    // Convert Roman to Decimal
    firstNumber.setDecimal(firstRoman);
    secondNumber.setDecimal(secondRoman);
    
    System.out.println("Viewing the Decimal values for the two defined instances");
    //Prints decimal Numbers
    firstNumber.printDecimal();
    secondNumber.printDecimal();
    
    System.out.println("Adding the Roman Numbers and returning new Roman value");
    Roman romanAdd;
    romanAdd = firstNumber.addRoman(secondNumber);
    romanAdd.printRoman();
    
    System.out.println("Subtracting the Roman Numbers and return new Roman value");
    Roman romanSub;
    romanSub = firstNumber.subRoman(secondNumber);
    romanSub.printRoman();
    }
    }
    

    CLASS:

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package myname.project.pkg6;
    
    /**
    *
    * @author wsteadma
    */
    public class Roman {
    
    private String romNumber;
    private int decNumber;
    
    public Roman(String rNumber) {
    romNumber = rNumber;
    }
    
    public String getRoman() {
    return romNumber;
    }
    
    public int getDecimal()
    {
    return decNumber;
    }
    
    public void printRoman() {
    System.out.println("The Roman Number is " + romNumber);
    }
    
    public void printDecimal() {
    System.out.println("The Decimal Number is " + decNumber);
    }
    
    // Converts a roman number string into a decimal value
    public int setDecimal(String romNum) {
    int charValue = 0;
    char[] characters = new char[romNum.length()];
    
    //System.out.println("romNum length is " + romNum.length());
    for (int counter = 0; counter < romNum.length(); counter++) {
    characters[counter] = romNum.charAt(counter);
    //System.out.println(characters[counter]);
    }
    
    for (int sCounter = 0; sCounter < romNum.length(); sCounter++) {
    if (characters[sCounter] == 'M'  || characters[sCounter] == 'm') {
    charValue += 1000;
    } else if (characters[sCounter] == 'D' || characters[sCounter] == 'd') {
    charValue += 500;
    } else if (characters[sCounter] == 'C' || characters[sCounter] == 'c') {
    charValue += 100;
    } else if (characters[sCounter] == 'L' || characters[sCounter] == 'l') {
    charValue += 50;
    } else if (characters[sCounter] == 'X' || characters[sCounter] == 'x') {
    charValue += 10;
    } else if (characters[sCounter] == 'V' || characters[sCounter] == 'v') {
    charValue += 5;
    } else if (characters[sCounter] == 'I' || characters[sCounter] == 'i') {
    charValue += 1;
    }
    
    }
    decNumber = charValue;
    return charValue;
    }
    
    // Converts a decomal number to a roman number
    public String setDec2Roman(int decNum) {
    String newRoman = "";
    
    while (decNum >= 1000) {
    newRoman += "M";
    decNum -= 1000;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 500) {
    newRoman += "D";
    decNum -= 500;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 100) {
    newRoman += "C";
    decNum -= 100;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 50) {
    newRoman += "L";
    decNum -= 50;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 10) {
    newRoman += "X";
    decNum -= 10;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 5) {
    newRoman += "V";
    decNum -= 5;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum > 0) {
    newRoman += "I";
    decNum -= 1;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    return newRoman;
    }
    
    public Roman addRoman(Roman newRom) {
    int totRom = newRom.setDecimal(newRom.romNumber) + decNumber;
    romNumber = newRom.setDec2Roman(totRom);
    return new Roman(romNumber);
    }
    
    public Roman subRoman(Roman subRom) {
    int totRom = decNumber - subRom.setDecimal(subRom.romNumber);
    romNumber = subRom.setDec2Roman(totRom);
    return new Roman(romNumber);
    }
    
    }
    
  • Check if a string contains "text" in a box, and only if it does not, add it to the chain.

    I have some comboboxes. I want a text field to add a channel to itself, that contains the text selected in each combobox. I got it with this:

    var a = this.getField ("CoBi_text");

    for (i = 1; i < 16; i ++) {}

    var t = (this.getField("CoB_"+i).valueAsString);

    Si (t ! = « ») {}

    a.Value += t + ',';   }   }

    But what adds text even though I select the same option in any of the combobox control. How can I include a conditional don't skip the increment if "the text is already in the string?  I tried this:

    If ((t! = «») & & (a.value.indexOf ("t") < 0)) {}

    a.Value += t + ',' ;}

    But it causes the chain add the text first, don't increment not any text more after that.

    PS. This text field will be hidden and later used on another condition (if it contains 'a specific text'), some other triggering actions.
    So the ',' (comma) is probably not necessary, but I think that it should not be in the way of a proper search indexOf (right?)

    Thank you.

    eHRM, nevermind. I got it.

    the "t" inside indexOf should not "s...".

    var a = this.getField ("CoBi_text");

    for (i = 1; i<16;i++)>

    var t = (this.getField("CoB_"+i).valueAsString);

    If ((t! = «») & (a.value.indexOf (t))<0) )="">

    a.Value += t + ',' ;}

    Now, he adds "text", but not more than once for each different text on each drop-down list.

    There is always the question of the modification of a selected item in a combobox control, how do I remove the old text from the text box but I think than any forced recalculation should be enough.

    Thank you for taking the time to respond and for the link!

  • Custom calculation script runs not after that the field contains data entered

    I have a form that the user has entered the ZIP Code which is 6 characters with no spaces.  I take the 6 characters between and create another field that puts it in the ZIP Code format, but it only seems to work when they need to enter more information that isn't always the case.  Any ideas on how automatically update after only 6 first characters are entered?

    Here is my code:

    var s = this.getField("Postal_Code").valueAsString;

    If (s! = "" ") event.value = s.substring (0.3) +" "+ s.substring(s.length-3);

    else event.value = "zip_code";

    Thank you

    Cindy

    Here's what you would do in Acrobat 11, and I think that it is very similar to 10:

    First of all go in form editing mode: Tools > forms > change

    Then select: tasks > other tasks > set field calculation order

  • How do I check the particluar string in the xml data

    Dear oracle Experts.
    I'm using the following oracle database.

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    AMT for Linux: release 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

    I have a following xml data...
    p_msg_in CLOB: =.
    < DATA >
    < FLD FNR = DTE = '26 SEP 12' "ZZ0584" SRC = "DXB" OF the "DAC" = / >
    < AAA LBP = ETK '22334455' = ' 1234567/4' ACT = "123" / >
    < AAA LBP = ETK "223344" = "2345678/1" / >
    < AAA LBP = ETK "223344" = ' 1/123456' ACT = "345" / >
    < / DATA >

    then im go get the header like this information...

    v_msg_xml: = xmltype (p_msg_in);

    I'm IN multicur (v_msg_xml, ' / DATA/FLD ') LOOP
    V_1: = i.xml.extract('//@FNR').getstringval ();
    v_4: = to_date(i.xml.extract('//@DTE').getstringval(),'DDMONYY');
    v_5: = i.xml.extract('//@SRC').getstringval ();
    v_6: = i.xml.extract('//@DES').getstringval ();
    END LOOP;

    After that, I need all the real records one by one, use it for a loop in a loop. Here for each iteration, I should check that a string of characters (for example law) is there or not. in the example above, 1.3 records have value of law in it. Well, I need to check something like that. If instr ("< AAA LBP = ETK"223344 "=" 123456/1 "ACT =" 345 "/ > ',' law") > 0 before performing the step below.
    How to get there.
    I appreciate your help.
    Thank you.
    C IN multicur (v_msg_xml, ' / DATA/AAA ') LOOP
    v_7: = c.xml.extract('//@LBP').getstringval ();
    v_8: = c.xml.extract('//@ETK').getstringval ();

    If I understood corrrectly you must give the LBP and values ETK tags AAA who attribute the Act. If so, all you need is:

    declare
        p_msg_in CLOB :=
    '
    
    
    
    
    ';
        v_msg_xml xmltype;
        cursor v_cur
          is
            select  lbp,
                    etk
              from  xmltable(
                             '/DATA/AAA[@ACT]'
                             passing v_msg_xml
                             columns
                               lbp varchar2(10) path '@LBP',
                               etk varchar2(10) path '@ETK'
                            );
    begin
        v_msg_xml := xmltype(p_msg_in);
        for v_rec in v_cur loop
          dbms_output.put_line('LBP = "' || v_rec.lbp || '" ETK = "' || v_rec.etk || '"');
        end loop;
    end;
    /
    LBP = "22334455" ETK = "1234567/4"
    LBP = "223344" ETK = "123456/1"
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    SY.

  • Regular experssion Unicode: allowed only numbers and letters

    What is the best way to write the query that generates the data according to the rules:
    (1) input string may include only numbers or letters, other symbols are not allowed,
    (2) numbers must be positive integers together: 0. 9 paper, no point or a comma or a space allowed in numbers.
    (3) letters may be lower or uppercase, regardless.
    (4) letters/characters may come from an English alphabet and can come from an Estonian alphabet, see BOF MCet alphabet letters he
    http://en.Wikipedia.org/wiki/Estonian_alphabet
    Thus, the symbol of the alphabet "Has two chief points" must also be accepted. Would be preferable that the German alphabet is allowed too and any alphabet is allowed, if possible.



    The initial request, I did is like this:
    with t as (
     select '01A' str from dual union all--ok
     select '1,1' str from dual union all--not ok
     select '1.1' str from dual union all--not ok
     select 'F' str from dual union all--ok
     select '1' str from dual union all--ok
     select 'Ä3' from dual union all--ok
     select 'a 3' from dual union all--not ok
     select ',4Ca.' from dual--not ok
     
    )
    select * from t where regexp_like(convert(str,'us7ascii'), '^[a-zA-Z0-9]+$')
    /*
    01A
    F
    1
    Ä3
    */
    I was failed when I tried to use this character class:
    "[: alnum:] any alphanumeric character from 0 to 9 OR A to Z or a to z."


    My environment:
    (1) "oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - Production.
    (2) NLS settings can change, depending on the client session, sometimes NLS_LANGUAGE have 'ESTONIAN' value and for some sessions, there is another value, same goes for the other nls settings I think.

    --
    Without "convert" - function I loose the record with "A 2 Chief points", which is bad:

    with t as)
    Select "01" a str of all - double union ok
    Select '1.1' str of all double union - not ok
    Select ' 1.1' any double union str - not ok.
    Select 'F' str of all - double union ok
    Select '1' str of all double union - ok
    Select "3" h.t. of all - double union ok
    Select ' a 3' of all - double union not ok. "
    Select ', ca. 4' double - not ok

    )
    Select * from t where regexp_like (str, ' ^ [a-zA-Z0-9] + $')
    /*
    01 A
    F
    1
    */

    Why don't you use it?

     select * from t where regexp_like(str, '^[[:alnum:]]+$')
    

    I was failed when I tried to use this character class:

    I do not see any problem in using alnum. Tell us what you have got everything using the error.

    Kind regards
    Prazy

  • In the VI library OR: extract, control of the channel numbers are loaded automatically every time that the VI is open with "count to five: a 2 three 4.0 five." Whence this string of data?

    Even after the removal of the string "count to five: a 2 3 4.» 5."since the control of the chain and its replacement by another string, the original string returns after that the VI has been saved then reopened. Whence this string of data? I have attached a copy of the library feature. In my application, I was able to work around the problem by replacing the chain with a constant string control. But I'm still curious to know what is happening.

    Thank you
    Chuck

    Chuck,

    Chain drive was scheduled by default with the string you see.  To change it, enter the new string, right-click on the control and select

    Operations on the data > default font of the current value

    Now, save your vi.

  • Function that returns only numbers

    Is it possible to have a SQL function that returns only numbers in a varchar?

    Example:

    My PHONE_NUMBER table contains a field with a phone number in VARCHAR2, it can contain:

    1-888-444-5555 or (514) 444-6666 or 514-222-4444 ext: 100


    I want to have a fuction which back me:

    18884445555 and 5144446666...


    Thanks for the help

    Hello

    For a copy of the string s with everything except the numbers (0-9), was deleted:

    REGEXP_REPLACE ( s
                   , '[^0-9]
                   )
    

    The expression above will work in Oracle 10 and higher.
    In any version, you can use TRANSLATE to remove the numbers, then reuse TRANSLATE to remove these characters from the s.

    TRANSLATE ( s,
           , '0' || TRANSLATE ( s
                                  , 'A0123456789'
                        , 'A'
                        )
           , '0'
           )
    
  • could not find a server reports and analysis hyperion running on localhost port 6800. Please check your connection string server and verify that the server is

    Hi all

    We have properly installed and configured Hyperion Reporting and analysis 11.1.2.4 in windows 2012 server however when I try to logint to the workspace, I get an error like "start-up of the specified document does not exist in the repository." "Select a new start under the General Preferences tab document" monitoring of "could not find a server reports and analysis hyperion running on localhost at port 6800. Please check your connection string server and verify that the server is up '.



    10.PNG


    11.PNG

    HyS9RaFramework_epmsystem2-syserr:

    GsmNotFound

    com.brio.one.services.globalservicemanager.GSMException: GsmNotFound

    at com.brio.one.services.globalservicemanager.GSMFactory.getGSM (unknown Source)

    to com.brio.one.client.ClientFactory. < init >(Unknown Source)

    to com.brio.one.client.ClientFactory. < init >(Unknown Source)

    to com.brio.one.client.ClientFactory$ ClientFactoryInitializer.connect (unknown Source)

    at com.brio.one.client.ClientFactory.getClientFactoryConnect (unknown Source)

    at com.brio.one.client.ClientFactory.getDefaultGSM (unknown Source)

    at com.brio.one.web.properties.ApplicationProperties.getDefaultGSM (unknown Source)

    at com.brio.one.web.properties.ApplicationProperties.getDefaultGSMContext (unknown Source)

    at com.sqribe.WS.WSBaseServlet.setDefaultGSMContext (unknown Source)

    at com.sqribe.WS.WSBaseServlet.initLogging (unknown Source)

    at com.sqribe.WS.WSBaseServlet.loadConfiguration (unknown Source)

    at com.sqribe.WS.WSBaseServlet.init (unknown Source)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletInitAction.run (StubSecurityHelper.java:283)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)

    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)

    to weblogic.servlet.internal.StubLifecycleHelper. < init > (StubLifecycleHelper.java:48)

    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)

    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)

    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)

    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)

    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3155)

    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)

    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:487)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:427)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)

    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)

    to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:427)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)

    to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:672)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)

    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)

    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)

    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)

    to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:52)

    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)

    to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:31)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)

    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)

    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)

    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)

    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)

    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)

    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    In the workspace, it shows that the Service is pending.

    14.PNG

    EMP Diagnostic Report:

    13.PNG

    Can help kindly out how should I solve this problem.

    I restarted the services and rebooted the Machine but still getting the same error.

    Kind regards

    VJ


    Hello

    I've reconfigured the Reporting, analysis, and everything by, I chose "Drop table" and the issue was resolved.

    Kind regards

    VJ

  • How to check that the variable 'does not contain' value?

    Hello

    I use CP 7.0.1.237.

    We want to use the widget text box for a custom quiz and verify a response. While we understood how to check the existence of certain key words, we are not able to find a way to check that the content does NOT contain certain keywords. For example, we want to ensure that the text entered in this widget does not contain a "Transformation" and "Non-compliant.

    Is this possible at all?

    Thank you

    Anthony

    Anthony, it works perfectly. Created this conditional action with 4 decisions. I used the interaction of training text scrolling in CP8 (because now you can control the variable - which means I might have a Reset button):

    First decision:

    Second decision (the third is similar to the following)

    Fourth and final decision

    I put the variable words (v_first... v_fifth), it's a reflex I use since I shared actions that much. The variable associated to the ETB (you can now reset an empty var in CP8) is v_TextArea and the Boolean value that will decide if positive feedback (StarOK) should be shown is v_TA_OK. If you want to display a negative feedback, put this in the ELSE part of the final decision.

    FYI: it took 15 minutes, including the creation of assets and the variables and tests. Personally I would have needed more time to do it in JS, but that's just me.

    Lieve

  • How to check the slider back row contains data or not

    Hi all


    How to check whether or not the cursor returned row contains data in one of its field.


    Thank you and best regards,
    Prakash P

    Use ROWCOUNT %
    Use % NOTFOUND

    example of

    DECLARE
    
       id    number;
       desc varchar2(10);
       CURSOR cursor_one IS
          SELECT
              id, desc
          FROM
              table;
    BEGIN
       OPEN cursor_one;
       LOOP
          FETCH cursor_one INTO id, desc;
          EXIT WHEN cursor_one%ROWCOUNT > 20 OR cursor_one%NOTFOUND;
       ...
       END LOOP;
       CLOSE cursor_one;
    END;
    
  • You can add not null column to a table that already contains data?

    Hello
    You can add not null column to a table that already contains data?
    Database 9i / 10g on RHEL
    Concerning

    Who worked in 9i?

    Looks like that it:

    SQL> select * from v$version where rownum = 1
    /
    BANNER
    ----------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    1 row selected.
    
    SQL> create table emp2 as select * from emp
    /
    Table created.
    
    SQL> alter table emp2 add new_col integer default 0 not null
    /
    Table altered.
    
  • Why check a memory that I ran I have only 768 MB of RAM when the specs say I have 1 GB of RAM?

    Original title: why a check programi ram memory I have only 768 MB of RAM when the instructions accompanying it, say I have 1 GB of RAM

    Why a memory check I ran say I only 768 MB of RAM when the instructions and even the sticker on the computer I have 1 GB of RAM?

    It is devoid of 256 MB, if you have 4 sticks up to 256 MB each (total 1 = 1024 MB) means 1 stick could be dead. You can try to clean the slots or reinstall the sticks.

Maybe you are looking for

  • New iTunes 12.4.3.1 update has Me Confused

    About the 12.4.3.1 new iTunes update, how can I do my playlists display in list view? I used to be able to in all previous versions.  I looked in the menu bar, and this option presents itself.  I use these list views for my radio show and need to loc

  • No scientific calculator. My phone will not rotate 90 °.

    Since going 9.3.1 turning my phone 90º is no longer works. No scientific calculator and not photos wide-angle. is there a workaround. Can I return to 9.2?

  • RD XV47KB still not eject a disc from the DVD unit

    I have a problem, for some reason any it ejects a disc from the dvd unit, I tried the obvious solutions without result, any suggestions will be greatly appreciated

  • Version 7.11 for devices in 16 GB?

    Hello guys. Maybe that's a nooby question but I can't find any reference to this subject. I bought a 16 GB W450 2 monhs and consultation of the site, I saw the upgrade MY 1.7.11 was available. My unit is using MY N16 1.7.10. Why the 1.7.11 version is

  • conversion of LabVIEW 8.5 in 2012

    Hello I'm trying to convert my application written in LabVIEW 8.5 with NOR-traditional Daq OR DAQmx LabVIEW 2012. You can find the code as an attachment Thank you