Exception thrown as regular expression is not recognized

Hi all,
My code throws me an exception, telling me that there are no files matching my file pattern, but I have three files which should match the file pattern in my input folder: /home/rkuite/test/asnout/store/ . There are three files there: ASN00507.txt, ASN00512.txt and ASN00531.txt
My code looks like this:
[outputtostore jcaps code|http://www.risa-webdesign.nl/jcaps_code/jcd_outputtostore.TXT]
And the error I get is as follows:
[error message when I execute the code|http://www.risa-webdesign.nl/jcaps_code/error_message.TXT]
I have tried various options and things to resolve this but to no avail, so I'd like to ask your help: what is wrong with the code?
Thanks & Kind Regards,
Richard

The error message:
java.io.FileNotFoundException: Directory Name: /home/rkuite/test/asnout/store/ File name: ^ASN*--- End of nested exception.
Is telling you that no files exist that begin with AS followed by zero or more N's. I believe the following regular expression would work better:
^ASN[0-9]*\.txt$
This would match any file name that began with ASN and was followed by zero or more digits zero thru nine and then ended with the dot txt.
Regards,
AK~

Similar Messages

  • 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.

  • My airport express is not recognizing an IP address. How can this be fixed?

    My airport Express is not recognizing an IP address. How can this be fixed?

    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Power-up the modem; wait at least 10-15 minutes.
    Power-up the base station; wait at least 5-10 minutes.
    Power-up your computer(s).
    In this basic configuration, computers connected to the base station, either by wire or wireless (as appropriate for the base station type), should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options.

  • Regular expression does not execute runtime

    Hello adobe collegue's,
    I am currently stumbling on a strange issue regarding javascript embedded to compress a string:
    // main function to compress any string, removing all non-word characters and making the string all lowercase
    function compressString(input){
        var patt=new RegExp("\\W","g");
        patt.compile(patt);
        var output = input.toLowerCase().replace(patt,"")+"YESS";
        return output;
    Somehow this code does execute perfectly while previewing in adobe designer 9.0.0.2 but runtime all javascript does execute except for the part mentioned above.
    I know this part is executed because in the result i see the string "YESS" added to the response of this function.
    Somehow the pattern is not compiled, or executed runtime...
    I also tried more simple regular expressions but none of them actually worked.
    For the templates the option client is set where to execute the javascript, although while testing the options to solve the issue is also tried settings both and server. None provided the solution.
    Can someone provide any help...it's appreciated!
    Thanks,
    Marcel

    Hi,
    you can make your function more simple.
    function compressString(input){
              return input.toLowerCase().replace(/\W/g,"") + "YESS";

  • Regular expression does not work in IE

    Hi,
    I'm having a regular expression which should check the content of an inputText field: it should contain a number, a character and the size should be at least 6. It's working when I test it in FireFox but it always fails to succeed in IE:
              <af:inputText>
                <af:validateRegExp pattern="^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]{6,24}$"
                                   noMatchMessageDetail="Does not match."/>
              </af:inputText>How comes it does not work in IE (6.0)?
    JDeveloper 10.1.3.3
    Thanks in advance,
    Koen Verhulst

    hi Koen
    The web page you refer to ...
    http://www.fileformat.info/tool/regex.htm
    ... seems to be doing server side Java regular expressions (and as such will behave the same in both FF and IE).
    The af:validateRegExp component you want to use does client side evaluation of the regular expression, using scripting, hence the apparent difference between FF and IE.
    There is also this web page ...
    http://www.regular-expressions.info/javascriptexample.html
    ... that seems to behave similar to the markup and scripting resulting from the af:validateRegExp component.
    Besides the value "2abcdef" there seem to be others that are accepted by IE for the regular expression "^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]{6,24}$", values like these:
    "a2abcdef", "a2abcde", "abcdef2abcde", "2a3cdef", "2a34567"
    Although these values are not accepted by IE (but are accepted in FF):
    "2abcde", "23bcdef"
    success
    Jan

  • Regular Expression replacement not working

    I am trying to use a regular expression to replace non-ascii characters on a file, and I'm afraid I've reached the end of my regex knowledge. 
    Here is the specific code
    'Set the Regular Expression paramaters
    Set RegEx = CreateObject("VBScript.Regexp")
    RegEx.Global = True
    RegEx.Pattern = "[^\u0000-\u007F]"
    RegEx.IgnoreCase = True
    'Replace the UTF-8 characters
    ReplacedText = RegEx.Replace(FileText, "\u0020")
    If I understand regular expressions correctly the pattern of "[^\u0000-\u007F]" should replace any character that is not an ascii character, and then replace it with a space (which I understand is "\u0020").  What am I doing wrong?

    Simply use
    ReplacedText = RegEx.Replace(FileText, " ")
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Match Regular Expression does not match what Match Pattern does

    I have read through a lot of posts about how Match Pattern does not match what Match Regular Expression will due to not processing some characters.
    However, I found a problem with the other way. A simple Reg-Ex that works in Match Pattern but not Match Regular Expression.
    What I have here is just an example. I want to use Match Regular Expression so I can specify some sub-matches.
    The reg-ex is for: one or more non-numeric characters, a space, one or more numeric characters. At the start of the string.
    How can I get this working in Match Regular Expression? I am working in LabVIEW 2010f2 32 bit. Here is the code snippet and the results:
    Rob
    Solved!
    Go to Solution.

    Robert Cole wrote:
    I think I prefer the ~ for negation since ^ is also used for beginning of the string. But we work with what we have.
    Let me offer you a tip and perhaps defend the honor of the regex a little bit.  One of my favorite features of regexes is the ability to specify character classes (and their negation).  One of the reasons I have to think about the ~ versus ^ is that I rarely use ^ in a regex alternative. 
    Some examples:
    [0-9] = \d (digit)
    [^0-9] = \D (not a digit)
    The equivalent regex for your case is: \D+ \d+

  • Regular expression - Replace not like

    Hi All,
    Is there a regexp pattern to replace anything other than 'oracle' from the below string.
    "oracle sdsd oracle xyd fgh oracle idmdh asasas trtrt"
    The result will be "oracleoracleoracle"
    If I want to write like regexp_replace('oracle sdsd oracle xyd fgh oracle idmdh asasas trtrt',<pattern>), what should be the pattern?
    I know how to get the result by nesting regexp and other functions.
    But is there any single pattern for this?
    Thanks in advance.
    Note; This is not a business requirement, trying to learn regexp..

    884476 wrote:
    Could you please explain what does that pattern mean? We can look at your string as a sequence of substrings where each substring is set of characters (part A) followed by word oracle or, in last substring, by end-of-line (part B). Each of such substrings be want to replace with part B thus removing part A.
    Dot (.) means any character. Asterisk (*) means repeated 0 or more times. This is our part A (I'll get back to ? later). Pipe (|) means OR. Dollar sigh ($) means end-of-line. Parenthesis mean grouping. So ((oracle)|$) means string oracle or end-of line. This is our part B. Now back to question mark. By default Oracle regular expressions are "greedy". We say any character repeated any number of times followed by word oracle. Since word oracle itself matched definition of any character repeated any number of times (6 in this case) regexp will match it that way that it will be from the beginning of the string to last occurrence of word oracle - that's why it is called "greedy". Question mark (?) tells regexp not to use greedy matching, therefore '.*?oracle' will stop at first occurrence of word oracle. Now replacement string. Notation \1 is grouping backreference. Group 1 is ((oracle)|$) and, as I already noted, means string oracle or end-of line (whichever was found).
    SY.

  • Regular Expression functions not supported in Interactive report filters ??

    I'm using APEX 4.0.2 and I'm trying to create a row filter in an interactive report which uses regexp_instr and regexp_replace functions and I'm getting the message:
    Invalid filter expression. regexp_instr
    The code runs fine in SQL Workshop
    select cytogenetics from z_patient
    where regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    CYTOGENETICS
    "46,XX [20]"
    "46,XY[20]"
    "46,XX"
    "46,XY[20]"
    "46,XY[30]"
    "46,XY[26]"
    "46,XY [33]"
    "46,XX[32]
    etc...
    my filter is just the where clause above i.e.
    regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    *Are regular expression functions just not supported in interactive report filters?*
    thanks in advance
    Paul P

    Hi Paul,
    regular expression functions are supported in interactive report filters, but it looks like that REGEXP_INSTR hasn't been added as valid command. Only REGEXP_SUBSTR and REGEXP_REPLACE are valid commands for computation expressions and REGEXP_SUBSTR, REGEXP_REPLACE and REGEXP_LIKE for row level filters.
    I have filed bug# 12926266 to fix this issue. Sorry for the inconvenience.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Apple Airport Express is not recognized

    I bought an Apple Airport Express to help boost and/ or extend my Wi-Fi. Prior to this, I was using a combination modem/ router that my ISP provided. Anyway, I attached an Ethernet cable from my router to the WAN port on the back of my Airport Express. As I understand, it should then appear in Airport Utility, but nothing shows up. The device just blinks amber green. The error message in Airport Utility says, “No Configured Airport Base Stations have been found.” My Internet is otherwise working fine, but Airport Utility fails to recognize it. What could be wrong?

    Power up the Express for a few minutes
    Hold in the reset button on the Express firmly for 10 seconds
    Allow a full minute for the Express to restart
    If Mavericks or the iOS devices cannot see the Express, you have a defective Express.
    Note....the Express will not "boost" or "extend" the signal from your wireless router wirelessly....unless you have another Apple router.

  • Help with regular expression to not run shtml-hacktype on particular reqs

    Hi,
    Okay, back to 7.0 u2 not ignoring things it should. Our regular site has a lot of SHTML includes. Then we have the glassfish loadbalancer plugin configured for a back-end web application. The problem is, the application URLs end in .html and the web server is looking locally for those requests. If I disable:
    ObjectType fn="shtml-hacktype"In the instance obj.conf, then the requests process normally in the proxy.
    I can't do that, though, because of the includes - then our main site doesn't function properly.
    Is there a way I can surround that line with something like "if request is not /gog/*" then execute? Similar to what I had to do for the j2ee problem looking locally instead of on the back end Weblogic servers.
    <If $uri =~ '^/wp-(.*)'>
    NameTrans fn="ntrans-j2ee" name="j2ee"
    </If>Only I want the opposite - if $uri is not equal to '^/gog/(.*)' then execute the shtml hacktype. I just don't know exactly what the expression would be.
    Thanks!

    Nevermind - I got it. RTFM :-)
    <If $uri !~ '^/gog/(.*)'>
    ObjectType fn="shtml-hacktype"
    </If>

  • Regular Expression -- Did Not Find Successfully

    I ran a test: to find a piece of text "Bill" in a letter. This letter is in MS Word format. I am certain that "Bill" is in the letter. My simple java program compiled and ran (java MatchingText). However, I did not get "A match is found", which is the message specified in the System.out.println, to the console.
    Here is my code:
    import java.util.regex.*;
    import java.io.*;
    public class MatchingText {
    public static void main(String[] args) throws Exception {
    File fin = new File("c:/javaprj/letter.doc");
    //Open an input stream
    FileInputStream fis =
    new FileInputStream(fin);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(fis));
    String input = "Bill";
    // Create a pattern to match input
    Pattern p = Pattern.compile("input");
    Matcher m = p.matcher(input);
    if (m.find()) {
    System.out.println("A match is found"); }
    in.close();
    Could someone points out my mistake? Thanks.

    There were mistakes in my program. I fixed some of the mistakes and I could see improvements in the output. Yet, I am not quite there:
    when there is no match in the source document, the code outputs "Found A Match" twice to the console.
    When there is "one" match in the source document, the code outputs "Found A Match" three times to the console.
    When there are "two" matches in the source document, the code outputs "Found A Match" four times to the console.
    When there are "three" matches in the source document, the code outputs "Found A Match" five times to the console.
    and so on.
    Just wonder where those two extra "Found A Match" come from.
    code:
    import java.util.regex.*;
    import java.io.*;
    public class MatchingText {
    public static void main(String[] args) throws Exception {
    //String provided by the user
    String userInput = "Bill";
    File fin = new File("c:/javaprj/letter.doc");
    //opens a bufferdReader to read lines
    BufferedReader in=new BufferedReader(new FileReader(fin));
    try {
    while((userInput = in.readLine()) !=null) {
    //pattern in the source document
    String targetText = "Bill";
    //Create a pattern to match input
    Pattern p = Pattern.compile(targetText);
    //To find a match in each line
    Matcher m = p.matcher(userInput);
    while (m.find()) System.out.println("Found A Match");
    catch(IOException e){System.out.println("Error occurred while reading!");}
    //close the streams
    finally {
    try {
    in.close();
    catch(IOException e){System.out.println("closing file exception");}
    --------------------------------------------------

  • Airport express is not recognized by my new macbook pro 10.7 with lion...

    Afer spending an hour on the phone with apple support center and not being able to correct this problem... I finally got it working after talking with a friend! So for those who have the same problem, the solution was in the end quite simple! Un plug the APE and plug it back in while pressing the reset button. Then connent the APE to your computor via a usb cable. The computor will then recognise the APE and you will be able to configurate for your liking! It can the be unplugged and placed where you want it to go in the house as the computor will now recognise it! I guess it was just to simple a solution for the help center to think about it! good lick to all!!

    While I appreciate you trying to help, I'm not a fan of being talked to like a child. If you want to see what version of iOS X I'm using, look no further than the title of my question (10.7.5, there, I saved you having to scroll up).
    Yes I read what you saying IOS and I thought you made a mistake because Mac operating system is called OSX and not IOS.
    Now, I can only assume that your next idea is for me to restart my computer and/or try a different cable. Let's pretend I'm not a complete moron and continue from beyond those steps.
    Well, my next idea would be figure it out yourself, if you think answering question is below you.

  • SQL-Tokenizer based on regular-expressions does not work

    I'm on 10gR2
    Following SQL-Tokenizer converts string :str to rows using :delim as the delimiter-char (:str and :delim are parameters):
    select level, regexp_replace(regexp_substr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ), :in_delimiter, '') as token
    from dual
    connect by regexp_instr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ) > 0
    order by level asc ;
    When using the pipe-symbol "|" as the delimiter, it doesn't work; the rows are processed, but the tokens are null. Using an other char as delimiter (e.g. ";") works fine.
    :str = "123;456;A1;67X;0;-8" & :delim = ";" => works fine
    :str = "123|456|A1|67X|0|-8" & :delim = "|" => does not work
    I think the bug is in the regexp-parameter for the pattern, isn't it?
    Why doesn't work the pipe-symbol as delimiter?
    Can anybody give me a hint for using the correct regexp-pattern?
    thx
    Nuerni

    select level, rtrim(regexp_substr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ),:in_delimiter ) as token
    from dual
    connect by regexp_instr( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, level ) > 0
    order by level asc ;use a rtrim instead of regexp_replace then it works...
    Ravi Kumar

  • Epson Expression 1600 not recognized by Acrobat

    I've been trying for a year to get Acrobat X pro to recognize my Epson Expression Scanner, but it never does. Frustrated that I have to scan in preview or scanning software then bring document into Acrobat. Frustrating. Please Help!

    Nevermind. The Epson R220 works fine on the AEBS. Wrong USB cable was plugged into the AEBS.

Maybe you are looking for