REGEXP_LIKE ('HÖEGH', ' ^ [A-Z0-9 "-.--] * $" ") returns TRUE.

Hi all

10 gr 2, the expression above evaluates to true then in Java (and in my view must always) is equal to FALSE because character O. How do I apply only the characters A-Z (without any diacritic), 0-9, ".". ' - ' and ' ' ' (single quote)? In the case of 'HÖEGH', the expression should return false, as it is if you go here: http://www.regexplanet.com/simple/index.jsp.

Thank you
Kind regards!

BB

nls_sort must also be binary:

SQL>  alter session set nls_comp = binary
/
Altersession successfully completed.

SQL>  alter session set nls_sort = binary
/
Altersession successfully completed.

SQL>  select * from dual where regexp_like('HÖEGH', '^[A-Z0-9''\.\-]+$')
/
no rows selected.

SQL>  select * from dual where regexp_like('HOEGH', '^[A-Z0-9''\.\-]+$')
/
DUMMY
-----
X
1 row selected.

Tags: Database

Similar Questions

  • one of the three conditions, return true

    I just saw the GOLD (Boolean Express) where if one of the TWO conditions, then return true to stop the labview.

    Y does it have that provides all Boolean Express if one of THREE conditions met, return true?

    type in compound under the rapid fall.

  • Counter: Why is 'Task is' returns True after the time of the HIGH?

    Realized that my other thread has been put out on the rails by... myself.

    Started testing the "task performed is" function on a counterexample over;

    Why is it returns "True" after time and not up AND down?

    And more still-so, how can I get him back 'True' after the time of low AND high? How can I get it to tell me that it's "done" after 9.1seconds instead of the ~ 3 seconds like today. Is there a better setup that I can use? (the numbers are arbitrary)

    A couple of notes, assuming that we have to deal with default impulses that are active top with a low idle state.

    1. in general, a pulse is defined with a 'time in idle state', first followed by a time in the status of the pulse.  Therefore, by definition a pulse (and so also a task of pulse) is indeed at the end of its active state (high).

    2. HOWEVER, the impulse first in no pulse train DO NOT USE 'small time' entry to set his time in idle state before the pulse.  Instead, it uses the "Initial deadline" entry for the first pulse while 'Low Time' is used for all subsequent impulses.

    3. as a result, when you generate a single pulse, 'Low Time' is meaningless.  Only 'Initial period' is important.  Therefore fitting your low downtime desired within the' original' instead of ' Low Time.

    This type of agreement has always seemed awkward at best to me.  I think that aid should be a lot more important emphasis on the idea that 'Small time' gets ignored for pulse unique.  I mean, the info * is * there but it's pretty easy to miss before you know to look for.  In any case, hope this helps you in your application.

    (An alternative you might consider is to set the pulse with a high idle state.  Then you wire the "Initial delay" to set the first time high and your task would end after 'small time' you set.  Just be aware that when you work with reverse polarity pulses, you should check the output terminal to see what is true by default as well until you begin your task and after remove you it from the State.   A given Council could be biased with meter output in poor condition, so when your task wants to reverse the polarity you might see a rising edge, the task begins in its state of rest high and then a front coming down like the ends of the task and the jury returns to its weak State by default.)

    -Kevin P

  • String.startsWith always returning true.

    Hello, I have a small issue that has been driving me nuts. I am a beginner in Java, so the problem is most likely something stupid that I monitor, so I would like another opinion.

    Basically I have a listfield I want to make it searchable. I had another problem earlier with indexOfList always returning-1, so I gave up using it. Instead, I am a loop in the listfield table and see if _seriesList [i] .startsWith (_searchField.getText ()). For some reason, it ALWAYS returns true, causing the first item in the list to be chosen as the result of the search. Here is the code:

      for(int i = 0; i < _seriesListField.getSize(); i++)    {     String temp = _searchField.getText();     System.out.println(_seriesList[i].Title);     System.out.println(temp);     if(_seriesList[i].Title.startsWith(temp));        {         System.out.println("startsWith returned TRUE");           _seriesListField.setSelectedIndex(i);         return;       } }
    

    No matter what value I give, startsWith return true. I also tried to use substring (0, temp.length () .equals (temp) instead and who also returned the value true. My console output is:

    07 - ghost<-- the="" name="" of="" the="" first="" item="" in="" the="">
    C<-- the="" value="" i="" typed="" into="" the="">

    startsWith, returned the TRUE value

    The javadoc for startsWith says he can return true if the prefix is null or if channels .of each other, see, however I see that these two are clearly false from the console output.

    I could use help to find out why this happens and fixing it, and if it turns out to be something mind-numbingly stupid and/or obvious I apologize profusely in advance.

    It is a sad, sad day for me. I had a semicolon after the if test. While the error itself is not so bad, the fact that it took me nearly an hour to discover this is painful.

  • linkXmp.isValid - returns true - when no metadata information available?


    I'm trying to check if an image has given Xmp and I am TRUE in both cases - the cases where there is no data and where there is

    the data browser shows as no metadata information available when there is no data but true is returned on linkXmp.isValid

    How do test you for this condition?   or is it a bug or my misunderstanding

    Thanks for looking at this problem for me

        //  isValid    bool     readonly    Returns true if the object specifier resolves to valid objects.
        // linkXmp.isValid   returns true    ... when  no Metadata information available.????
        var myLabel;
        var myLink = myGraphic.itemLink;
        var myStatus = myLink.linkXmp.isValid ;
        $.writeln(myLink.linkXmp.isValid );
        
    

    Oops, I'm sorry, that is not properly located.

    Instead of

    if (e.message !== "No Metadata information available.") {
    

    Please use

    if (e.message !== app.translateKeyString(
        "$ID/NoMetaDataAvailableError"))
    {
    

    (you can find the $ID / strings by use of the app.findKeyStrings ()).

  • isShowing() returns true when I do not see the image

    Hello friends,
    Why isShowing() returns true when I do not see the image?

    See you soon,.
    André Uhres
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.util.logging.*;
    import javax.swing.*;
    
    public class IsShowingDemo extends JFrame {
    
        private JTextArea jTextArea1;
    
        public IsShowingDemo() {
            jTextArea1 = new JTextArea();
    
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("IsShowingDemo");
    
            jTextArea1.setBackground(new java.awt.Color(255, 255, 204));
            jTextArea1.setEditable(false);
            jTextArea1.setLineWrap(true);
            jTextArea1.setText("Please iconify this window or take some other window "
                    + "to front so that this one is hidden. "
                    + "Then double click the white tray icon.");
            jTextArea1.setWrapStyleWord(true);
            getContentPane().add(jTextArea1, BorderLayout.CENTER);
    
            setSize(400, 300);
            setLocationRelativeTo(null);
    
            BufferedImage image = new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
            Graphics2D graphics = image.createGraphics();
            graphics.fillOval(2, 2, 12, 12);
            setIconImage(image);
            installTrayicon(image);
        }
    
        private void installTrayicon(final Image image) {
            TrayIcon icon = new TrayIcon(image, "IsShowingDemo", null);
            icon.addActionListener(new ActionListener() {
    
                @Override
                public void actionPerformed(final ActionEvent e) {
                    boolean showing = IsShowingDemo.this.isShowing();
                    JOptionPane.showMessageDialog(null, "frame is showing = " + showing
                            + ", \ndo you see the frame?");
                }
            });
            try {
                SystemTray.getSystemTray().add(icon);
            } catch (AWTException ex) {
                Logger.getLogger(IsShowingDemo.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    
        public static void main(final String args[]) {
            EventQueue.invokeLater(new Runnable() {
    
                public void run() {
                    new IsShowingDemo().setVisible(true);
                }
            });
        }
    }

    Because the image shows according to Java. They could be overlapped by other windows or is reduced to a minimum is not something that Java checks in this method.

    If you want to make visible by the user you will need to use something like:

    if(TestShowing.this.getExtendedState() == Frame.ICONIFIED) {
      TestShowing.this.setExtendedState(JFrame.NORMAL);
    }
    TestShowing.this.toFront();
    

    But make sure it is visible to the user would require native lib I think (or take a screenshot and are looking for your setting here).

  • Number consecutive transformed two return true or flase.12345678, 12346578

    Oracle 11 g 2 version.

    In the sub sample data column has, b if there are 2 two consecutive numbers are transposed in the B of A column she must return the string "true".

    with t as
    (
    Select '123456789 ', '123476581' double b
    Union of all the
    Select '123456789 ', '123465789' from dual
    Union of all the
    Select '332211', '332121' from dual
    Union of all the
    Select '54321', '54312' from dual
    Union of all the
    Select '78901', '79801' from dual
    )
    Select a, b from t

    I need output like below.


    a and b val

    123456789 123476581 FALSE
    123456789 123465789 TRUE
    332211 332121 TRUE
    54321 54312 TRUE
    78901 79801 TRUE
    65432 63452 FALSE


    Thanks in advance.

    Published by: raj_tech on July 6, 2012 03:06

    raj_tech wrote:
    HI CHRIS.

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE 11.2.0.1.0 Production."
    AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    Thank you
    RAJESH

    Great, so now you have shown us your version.

    How about in response to the answer that you were given and let people know if you have had your answer or if there is still a problem. Which is called communication and feedback, and it is certainly useful things along if you do this.

  • When records [i] .isDisabled () returns true?

    Hello

    Please check this code

    ServiceBook sb = ServiceBook.getSB();        net.rim.device.api.servicebook.ServiceRecord[] records = sb               .findRecordsByCid("WPTCP");       String uid = null;
    
          for (int i = 0; i < records.length; i++) {         // Search through all service records to find the         // valid non-Wi-Fi and non-MMS            // WAP 2.0 Gateway Service Record.            ConstantData.data += "\nIs the current record valid?: "                   + records[i].isValid() + "\nIs it Disabled: "                 + records[i].isDisabled();
    

    Is to put this line when used in storm 2 with verizon 3 g enabled

    Is the current record valid?: trueIs it Disabled: false
    
    Data is valid and is enabled
    
    UID at record0: MMS 50009Is the current record valid?: trueIs it Disabled: true
    

    What happens the last line?

    I've found that when no link found

    Records [i] .isDisabled () is true.

    Are there other opportunities in Verizon? Coz, this occurs only with Verizon and not in any other service provider that I used.

    See the documentation for the ServiceRecord.isDisabled ()API:

    "True if this record has no routing information; Otherwise, true.

    So I think it is problem with the routing on your device carrier.

    You can also check getNetworkType() and getType() for more details on this service.

  • App settles at the bottom there is if acceptsForeground() returns true and another application called.

    Hi guys.

    I have an app that chooses his 'background or foreground behavior depends on its entry points.

    I don't want the background version is displayed on the Ribbon 'Application Switch' so I use recommended substitution: -.

    protected boolean acceptsForeground() {}

    Return acceptsForeground;

    }

    where the variable 'acceptsForeground' has been defined by querying the arguments of entry point.

    This works because the variant of the application background does not appear on the Ribbon "Switch Application". So far so good.

    However, when the application is running its first plan variant, a click on a mapfield launches BB Maps. Closed WhenBB cards, my application remains in the background and is accessible onlythrough 'Application Switch' or by clicking on its icon on the Ribbon (then the OS says that it is already running and he commutes in the foreground). I just return origin as it does without the "fix."

    If I take the 'acceptsForeground()' replace the sequence of mapfield BBMaps and back runs as expected, but the version of the application background appears in 'Application Switch' which I don't want.

    Any ideas guys? I've been hunting everywhere and there is no indication on the boards that someone has had this problem.

    BTW I have not yet delivered this material test, some simulators 9780 & 9800.

    Hi Peter,.

    Sorry I disappeared for a bit, I was faced with the emphasis on a mapfield as I had to pay to send this request to the UAT.

    In any case, the problem is solved, but in a strange way.

    When the problem occurred, I was stating the application variable before using it immediately. Once I moved the statement immediately after the start of the main method and assigned null in the declaration, all the rest worked as announced.

    What I'll be able to do, is to guarantee I have not had not previously forced the JVM to assess the class too early, causing some uninitialized fields to be null (i.e. what the call of acceptsForeground() substituted sometimes generated 'on the fly'). Various calls to the methods referencing fields may have forced the assessment. With the assignment statement and nothing happening really early I also assume that the assessment by the JVM is complete and correct. The application manager did not have a chance to enter in conflict with the main method.

    I think we can close this post and I thank you for your suggestions and help. Its always good to have a different perspective.

    Concerning

    Tim

  • Check a table with a form entry field to return true or false?

    I have a table that when subject to a dumping lists date for all the days of the month. There is a form, where the user specifies the date and when submitted, transfers to a file processing.cfm which is where I want the < cfif > to check if the date specified in the form exists in the table (in this way, it only limits the user to only be able to select a date from this month for an event). Is it possible to have a cfif where it will check if the table contains the date, the user has specified and the real return (if contains the specified date) and transfers the form to email.cfm (where it will send all form entries) or will return false (if outside this range) and then return to the eventform.cfm?

    Too bad. Figured it out.

    Here is my code if it helps someone:

    function weekOfMonth (thisDate) {}

    var thisDay = day (thisDate);

    var thisWeek = 0;

    If (thisDay LTE 7)

    thisWeek = 1;

    ElseIf (thisDay GT 7 AND thisDay LTE 14)

    thisWeek = 2;

    ElseIf (thisDay GT 14 AND thisDay LTE 21)

    thisWeek = 3;

    on the other

    thisWeek = 4;

    ThisWeek return;

    }

  • Model maching class of regular Expression to validate the alphanumeric string

    Hello
    MY version of DB is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit

    I wanted to use the model maching given by oracle classes to check whether a given input string is alphanumeric.

    Documentation Oracle 10 g said about classes like [: digit:], [: alnum:] and many others.

    http://www.DBA-Oracle.com/t_regular_expressions.htm

    However these classes seems not work with my version of DB.

    Can someone tell me the DB version in which these classes work?

    Here is the code I use to validate an input string.
    SQL> CREATE OR REPLACE FUNCTION fn_is_alphanumeric
      2  (
      3     pi_value             IN       VARCHAR2
      4  )
      5  RETURN VARCHAR2
      6  IS
      7     lv_length   NUMBER;
      8  BEGIN
      9     lv_length := length(pi_value);
     10     IF ( REGEXP_LIKE(pi_value,'[:alnum:]{'||lv_length||'}')) THEN
     11        RETURN 'TRUE';
     12     ELSE
     13        RETURN 'FALSE';
     14     END IF;
     15  END fn_is_alphanumeric;
     16  /
    
    Function created.
    
    SQL> 
    SQL> 
    SQL> SELECT fn_is_alphanumeric('abc123') alpha FROM DUAL;
    
    ALPHA
    --------------------------------------------------------------------------------
    FALSE
    
    SQL> 
    SQL> 
    SQL> CREATE OR REPLACE FUNCTION fn_is_alphanumeric
      2  (
      3     pi_value             IN       VARCHAR2
      4  )
      5  RETURN VARCHAR2
      6  IS
      7     lv_length   NUMBER;
      8  BEGIN
      9     lv_length := length(pi_value);
     10     IF ( REGEXP_LIKE(pi_value,'[A-z0-9]{'||lv_length||'}')) THEN
     11        RETURN 'TRUE';
     12     ELSE
     13        RETURN 'FALSE';
     14     END IF;
     15  END fn_is_alphanumeric;
     16  /
    
    Function created.
    
    SQL> SELECT fn_is_alphanumeric('abc123') alpha FROM DUAL;
    
    ALPHA
    --------------------------------------------------------------------------------
    TRUE

    Arun Kr Gupta says:
    Hi knani
    I need to check whether the input string is alphanumeric.

    That's why "ABC" all entries as '1234', '123ABc', must return true.

    Also can the alphanumeric string contains characters that are available on the keyboard which can be seized of it.

    Concerning
    Arun

    Published by: Arun Gupta of Kr on October 18, 2010 11:46

    I just read your requirement "all printable characters.

    Try:

    select regexp_like('string','^[[:print:]]$') from dual
    

    to get only the records that have only printable characters.

  • Returns always true?

    Okay, so the question here. I have a workload file and an entry on the method of file. We all know what they are doing. How ever load always returns true and writing always returns false. Just, you know somethings wrong.

    Because the forums are a problem with me validation code... I've posted it here: http://pastebin.com/MTDi5y0C

    Based on this code, what is the problem here? Why write return always false and why always charge returns true? (even for files that do not exist). My understanding is that if flash is unable to find the file that it should write to it it will create, and if it cannot load said file, then this method should return false.

    or even more own assignment:

    var f:File = File.desktopDirectory.resolvePath(fileName);
    
  • REGEXP_LIKE to match a phrase (other than the signs of punctuation and space.)

    Hello

    l_text1 VARCHAR2 (2500): = ' a great phrase that has, my phrase not found; And also other text ';

    l_text2 VARCHAR2 (2500): = ' a great phrase that has, my - phrase not found; And also other text ';

    l_search_string VARCHAR2 (2500): = ' (^ | \s|) [[: punct :]])]] My (\s+) sentence (\s+) nice (\s+) (\s+) found([[:punct:]]|\s|$)';

    REGEXP_LIKE (Upper (l_text1), l_search_string) returns true

    REGEXP_LIKE (Upper (l_text2), l_search_string) returns false.

    Help on the search string so that it is found in text1 and text2.

    Kind regards

    Ngandu

    Hi, Thierry.

    Here's one way:

    SELECT str

    FROM table_x

    WHERE REGEXP_LIKE (str

    , '(^| ([[: punct:] [: space:]]) MY'       ||

    "[[: punct:] [: space:]] + SENTENCE ' |"

    "[[: punct:] [: space:]] + to ' |"

    "[[: punct:] [: space:]] + BE' |"

    "[[: punct:] [: space:]] + FOUND' |"

    "([[: punct:][:space:]]|$)'"

    , 'i'

    )

    ;

  • REGEXP_LIKE (is that it works the way it's supposed to be?) if not, why?

    Hi guys,.

    Q1 (ii) has obtained data

    Select * from test;

    A
    --
    1234


    SELECT * from test where regexp_like(a,'^[[:digit:]]$');

    It does not work until I have add a sign in front of the $ and I don't understand what I need a quantifier here.


    I place anchor ^ 1 digit face

    ↑ numbers
    _1234


    So yes it matches revenue - > 1

    I place a $ anchor also behind 1 digit
    $ digit
    $ 1234

    and Yes, it also matches numbers - > 4

    then why didn't he show you something?


    Scott@ORCL Q2) on 23 May 09 > select * from test;

    A
    --------------------
    a0000bb


    Select * from test where regexp_like(a,'[[:digit:]]{1,2}');
    {n, m}
    Specifies that an element should take place anywhere between n and m times, inclusively.

    I said that a figure must occur either 1 or 2 times (max), but here it is occuring, 4 times already, but still the results still shows. no idea why?

    Hope to hear tips from you guys
    Kind regards
    Noob :)

    Hello

    Whenever you post the code on this site, type the 6 characters:
    {code}
    (small letters only, inside curly braces) before and after the code. Especially, it is imnportant when using regular expressions, which use symols which are also considered as markup.

    You asked why it returns false:

    REGEXP_LIKE ( '1234'
             ,          '^'          -- (a) Beginning of string
                  ||     '[[:digit:]]'     -- (b) Any one digit
              ||     '$'          -- (c) End of string
             )
    

    That's because you are looking for
    the beginning of the string, followed immediately by
    (b) any sales, followed immediately by
    (c) the end of the string.
    Takes the substring '1' (a) and (b), but not (c).
    The substrings "2" and "3" fill (b), but neither (a) or (c)
    The substring '4' fills (b) and (c) but not (a)
    None of the other sub-channels ('12 ', '123', ' 1234', '23' and '234' 34') answer (b)
    There is therefore no substring which meets all of the criteria (a) (b) and (c).

    The same kind of reasoning applies to

    REGEXP_LIKE ( '1234'
             ,          '^'          -- (a) Beginning of string
                  ||     '[[:digit:]]'
              ||         '{1,2}'     -- (b) Any one or two digits
              ||     '$'          -- (c) End of string
             )
    

    It is a substring of four digits immediately after the beginning of the string and just before the end of the string, so that is why + causes the expression to return true.

    When you said:

    REGEXP_LIKE ( 'a0000bb'
             ,     '[[:digit:]]{1,2}'     -- Any one or two digits
             )
    

    you have is no condition relating to the beginning or end of the string. The above expression just says there must be a 1-2 digit group: no matter what comes immediately before this group or what comes immediately after him.

  • just the job for DB set to true

    Hello

    I did VI this post to a MySQL DB when you press the touch button of Lego NXT on port 1, but right now, it display the States True and False, and I only need the true statements.

    I can't find a VI that only returns True and sends to the DB connection and just throw the fake.

    Is it possible somehow, (it must be possible)?

    Zaico wrote:

    Heres my VI

    But with a structure of the case, I have to set the real time output and false, I just can't seem to throw false and use only true... but it's maybe just me?

    Can you take a look at my VI and see if it's just me?

    Thank you

    You do not use a case structure in your VI.  You used a select statement.

    Please, start the tutorials.  A case structure is this notion important fundamental and in LabVIEW that if you're not familiar with it, then you are a long way away from being able to do the same programming LabVIEW base.

    You would put the DB tools insert given Subvi in the case of true value.  You would put nothing on the case of false except the son reference and error wiring connection in.

    You don't want to put the connection open and tied inside the while loop.  Put the front opening and close error.  It's a waste of resources continually open and close each iteration of the while loop the same connection.

    You probably also need a timer waiting inside the while loop.  Unless there is something in the Subvi that control the speed of execution of the while loop, you will use this loop at such a fast speed and it consumes 100% of the time CPU.  This is going to hurt the functioning of your VI and perhaps the entire operation of your PC.

Maybe you are looking for