Wildcard character selection

Hi all,
What is the wildcard character to find words....i.e;any word with any number of alphabets, starting with any alphabet between A to Z and ending with any alphabet between A to Z...i.e.,apple,zebra,america..etc...
Actually I need this to distinguish between words and numbers.
Do please help me...
Thanking in advance
Aswathy

I wrote an Introduction to regular expressions ... recently, so if you're using 10g ...
C.

Similar Messages

  • The wildcard % character is not working

    It's been about 4 or 5 years since I have used Oracle so please be patient with my questions (out of the field but now I'm back). For instance, when I select emp% using the % character it Oracle is treating it as a regular character and returning no rows. Do I have to update a table to identify the wildcard character? I seem to have forgotten how to do this

    Do you use LIKE operator or just simply equivalence (=)?
    E.g. should be something like
    SELECT *
    FROM blahh
    WHERE blahhhh LIKE 'emp%'Also remember that Oracle data are CASE SENSITIVE i.e. 'EMP' is not the same as 'emp'.
    Gints Plivna
    http://www.gplivna.eu

  • Saprouter:wildcard character error

    Hi people,
    I stopped the saprouter and when I try to start other time I have the next error message:
    WARNING: Wildcard character used in route target
    What can i do?

    I push a # in the two lines for the documented them and try to execute saprouter.exe -r and the next message are:
    command line arg 0:     saprouter.exe
    command line arg 1:     -r
    main(): pid = 6084, ppid = 0, port = 3299, parent port = 0 (0 = parent is not a SAProuter)
    reading routtab: ./saprouttab
    ERROR => SNC field without SNC active, skip line 2 [nirout.cpp   7806]
    ERROR => SNC field without SNC active, skip line 5 [nirout.cpp   7806]
    ERROR => SNC field without SNC active, skip line 9 [nirout.cpp   7806]
    ERROR => SNC field without SNC active, skip line 13 [nirout.cpp   7806]
    Now I have configured the OSS1 with the note 96655, and when I try to logon on the system I have the error message:
    Unable to connect to message server.
    Edited by: David Esquivel on Sep 19, 2008 3:11 PM

  • Reading files using wildcard character

    Hi Everyone,
    I currently implemented a servlet that reads contents of a specific directory using File class:
    File contens = new File(directory_path);
    After this I would simply call contents.list(), which would list all of the files in that particular directory. And this works fine but I need to filter some of the files out so I came up with a solution of using a wildcard character:
    File contents = new File(directory_path + "SomeString" + "*");
    I would assume that this should give me all of the file names that begin with "SomeString" but it does not work that well. Instead I get null trying to instantiate a new instance of a File object and NullPointerException when I try to call list() method on it.
    How can I read directory contents if I want only certain file names that begin with "SomeString" for example.
    Any help will be greatly appreciated!
    Thanks in advance,
    Y.M.

    You can create a FilenameFilter and use it like this:
                myFilenameFilter filter=new myFilenameFilter();
                String[] dirArray=new File(myPath).list(filter);
       class myFilenameFilter implements FilenameFilter {
          public boolean accept(File dir, String name) {
             if (name.startsWith(SomeString)) return true; else return false;
    }where SomeString is a globally accessible String.
    V.V.

  • Wildcard character in Org value

    I have a requirement wherein ,I have to provide access to all cost centers with pattern 200ABUS,200CDUS,200XYUS,etc.
    I want to use 4th and 5th character as wildcard,but neither + nor ? works.I have tried 200++US and 200??US,but system didn't recognize these as wildcard character.
    System is currently on SAPKB70106 support pack for SAP Basis Component.
    Is it possible to use single wildcard character in org value?

    Hi,
    I recommend you use the search function.  There is the same topic on the 1st page of the forum. 
    In R3 role design , "filling character" for org level required
    The quick answer is that you cannot achieve what you want.

  • Wildcard Character

    Hi, I use this piece of code to scan through an entire HTML file:
    while (!scanner.nextLine().matches( "TEXT HERE" )) {
    // do stuff
    // do other stuffIs there some kind of wildcard character that I can in the .matches() method use so that the following line in the HTML file would return true to the above statement:
    <b>TEXT HERE</b>Or perhaps there is something in the API that I haven't seen which could do the searching for me in an easier way? Thanks.

    ".*?TEXT HERE.*"

  • How do I make a "Character Select" system?

    I'm making a game for school that is a vertical scrolling shooter (like the Raiden series), based off of the anime Galaxy Angel. For anyone who has seen GA would know there's 5 main characters, all of which I have put in my game. My program is an application (so swing answers only please), and made up of 4 classes: Title Page, Character Select, Main Game, and Credits. I intend to make my program load different Player sprites depending on what character is chosen. Can someone tell me how I can make my Main Game class read which character has been chosen from my Character Select class?

    A very quick and easy way of doing this with Swing is using the JRadioButton class. The following suggestion is similar to a technique used in "How to use Radio Buttons".
    http://java.sun.com/docs/books/tutorial/uiswing/components/button.html#radiobutton
    Inside CharSel class:
    First, declare a class String variable called "userIcon" or something at the top of your program. This will be the path of the icon for your user.
    private static String userIcon=null;When you're setting up the GUI for your CharSel screen, use an array of JRadioButtons for the character buttons. In the for loop where you initialize each button, group them all, and set up the basics (ie: stylize the button to make it feel more like a game), add something like this:
    buttons.addActionListener(this); //assuming you've implemented ActionListener
    buttons[i].setActionCommand("images/charIcon"+i+".gif");
    The i variable is just an int; the current index of your radio button array in your for loop. An action command is simply a String passed to the ActionEvent of your ActionListener.
    You would then add something like the following so you can retrieve the icon's path from other classes:
    public static void setUserIconPath(String s) { this.userIcon = userIcon; }
    public static String getUserIconPath() { return userIcon; }
    //called when a radio button is pressed
    public void actionPerformed(ActionEvent e) {
      //retrieve the action command
      setUserIconPath(e.getActionCommand());
    }When you are writing your actual game classes, you'll create the user image using the static methods:
    ImageIcon portrait = new ImageIcon(CharSel.getUserIconPath());If you wish to avoid the static methods (which may cause problems depending on how you use them), you can set the constructor of your MainGame class to accept the icon's path (or just the ImageIcon itself).
    Alternately, you could simply call a method passing the path/imageicon [i]after you initialize your MainGame class.
    Other techniques may include constant ints and a switch statement (which checks something like CharSel.selectedIcon() == CharSel.BOB). Of course, a more typesafe way of doing that would be to use enums. If you did use enums, you could even include methods for your enum constants (ie: CharSel.Chars.BOB.getImageIcon() may return Bob's ImageIcon).
    Good luck!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Wildcard in SELECT statement defined as a variable

    Hi,
    The following query works in a PL/SQL procedure (it's defined in a variable because the WHERE clause will eventually be built at run time):
    l_select_statement VARCHAR2(4000) :=
    'SELECT XMLELEMENT (
    FROM WEB_VPREPARATIONS W WHERE CODE LIKE :code';
    I execute it via a cursor, like this:
    OPEN l_prod_cv FOR l_select_statement USING in_code;
    I would like to add the '%' wildcard on either side of ':code', but nothing that I've tried works (e.g., LIKE ''%:code%'' using two single quotes on either side). Any help would be greatly appreciated. Thanks,
    Chris.

    That was it! Thank you so much.
    I apologize to odie 63, but the "Correct" button disappeared once I had marked metzquar's...
    I prefer not to pass the wildcard via the variable, and keep it inside the query, just in case the query ever changes.
    Thanks to all who helped; response time was in the milliseconds!
    Chris.

  • Use of wildcard * in SELECT statement

    I have read that the use of the wildcard * in a SELECT statement cannot be utilized when using the INSERT INTO or other queries where data column/field alignment is critical. I have noted that the INSERT INTO column/fields must be in the same order
    as the SELECT statement (as there is no alignment to column/field names). Can someone please provide me with the information or article that covered this scenario?

    It is consider a good practice to specify columns name, however , SQL Server is smart enough to insert the data without too , but only if the table does not have an IDENTITY property
    CREATE TABLE #t (c1 int, c2 char(1),c3 real, c4 bit)
    CREATE TABLE #t1 (c1 int, c2 char(1),c3 real, c4 bit)
    ---Same thing with INSERT  like SELECT * you asked
    INSERT INTO #t1 VALUES (1,'A',2.5,0) 
    INSERT INTO #t1 VALUES (2,'B',3.5,1)
    INSERT INTO #t1 VALUES (3,'C',4.5,0)
    INSERT INTO #t SELECT * FROM #t1
    SELECT * FROM #t
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • % _ wildcard character issue?

    Hi,
    can any one help me in correcting the below query,
    i want to search table name starting with FI_
    how to include wild card char when % or _ itself is needed to be
    looked in .
    select * from user_tables where table_name like 'FI_'

    You can define your escape char by setting escape command in the where clause.
    In the given example like 'FI\_%' since we mentioned escape '\' wildcard '_' will be treated as a normal char since it appears after the escape char (\).
    If you have FI_A\_
    the first '_' would react as wildcard and the next '_' would react as normal char
    and hence FIxA_ would be selected where as FIxAx would not be selected.
    Regards,
    S.Muthukumar.

  • CONTAINS search error while using wildcard character

    HI,
    Please help to me,
    CONTAINS search error while using wild-card characters
    SELECT * FROM CUSTOMER WHERE CONTAINS(EMAIL,'test@%',1) > 0;
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    Thanks

    I am not sure about the error. But This posting may give you some ideas
    How to limit the number of search results returned by oracle text
    Please have a look.

  • String Character Selection

    I just want to know if anyone knows the code so I can select the first character in a string and the last character in the string so that I can do the following function :
    First("ABC") ^ Last("ABC") = Answer
    Tks for any help

    You can use the charAt() method of the String class to help you find out the values. To find the first character use charAt(0) and to find the last character you can use charAt(String.lenght() - 1).
    Example:
    String word = "ABC";
    char firstLetter = word.charAt(0);
    char lastLetter = word.charAt(word.length() - 1);
    I hope this helps.

  • Get-ChildItem with -LiteralPath is throwing "The specified wildcard character pattern is not valid" when filenames contain brackets

    I'm trying to get a list of folders in a hierarchy that don't contain any mp3 files. (The goal here is to eventually clean up all the "empty" folders that only have album art, thumbs.db, desktop.ini, etc. files left). So I wrote a quick PowerShell
    command to try to do this. But it doesn't seem to be working.
    I already checked out this thread <Get-ChildItem
    SomeFile[].txt occurs error because of the [brackets]: "specified wildcard pattern not valid"> and I think I'm using LiteralPath correctly. Any other hints for troubleshooting this problem? Here's the command I'm using.
    Get-ChildItem -Recurse -Directory | ?{
    @( @(Get-ChildItem -LiteralPath $_.FullName -Recurse) | ?{
    $_.Extension -eq ".mp3"}).Count -eq 0 }
    This is on the latest version of PowerShell found in Windows Technical Preview.

    Fair enough, but it still doesn't answer the original question- why isn't this working with -LiteralPath when the path contains brackets? 
    Get-ChildItem -Recurse -Directory | ?{
    @( @(Get-ChildItem -LiteralPath $_.FullName -Recurse) | ?{
    $_.Extension -eq ".mp3"}).Count -eq 0 }
    Thanks,
    Ben

  • Regarding MCBA character selection.

    Hi,
    When I am performing transaction MCBA and selecting all the characteristics like Plant, Storage location, MAterial, Month, Valuation class, MRP controller, etc. When executing the report the output is delivered. But while downloading it via XXL to excel (via menu - Plant analysis -->export --> Transfer to XXL ) system ask to select which characteristics to include in the download.
    But the Field 'Valuation class' is not listed to include in the download. ( all other are dispalys).
    Please help on this issue.
    Thanks.

    Your main purpose here is to export file to excel. Why not try second button with arrow sign, save to PC file and then check spreadsheet and press enter, this is better option on exporting files.

  • Wildcard in select query

    Hi,
    I am having one requirement,
    In my report i need to give cost centre in
    selection screen(select-options).
    Based on that i need to fetch WOGBTR from COEP table.
    eg : cost center i need to give like this
    imagine
    select-options : s_kostl for csks-kostl.
    now in s_kostl-low if i give value klnnn12345* and
           in s_kostl-high if i give value klnnn12350*
    now based on these input i need to write a select query in
    the program to fetch the records from COEP table.
    can any body please let me know how to code where condition
    in the select query in this case...
    Thanks  and regards,
    vasu

    Hi Vasu,
    you will reach information of the field WOGBTR in the table COEP over the criteria costcenter (KOSTL).
    The costcenter isn't an attribute of table COEP, but of table CSKS.
    The link between CSKS and COEP is the attribute KOKRS.
    So you have to do the following steps:
    1. Get the values of KOKRS from table CSKS over your select-options s_kostl (... where kostl in s_kostl)
    select * into table <itab_csks> from csks
    where kostl in s_skostl.
    2. Build a new rangetable  for KOKRS
    loop at <itab_csks> into ls_csks.
    lr_kokrs-sign = 'I'.
    lr_kokrs-option = 'EQ'.
    lr_kokrs-low = ls_csks-kokrs.
    collect lr_kokrs into lrt_kokrs.
    endloop.
    3. Start a new query for the table COEP with your new tangetable for KOKRS
    Select * into table <itab_coep> from coep
    where kokrs into lrt_kokrs.
    now you have the information you needed.
    Greetings
    Joerg

Maybe you are looking for