Regular expression problem

From: <mattsteel_at_hotmail.it>
Date: Thu, 12 Feb 2009 01:51:59 -0800 (PST)
Message-ID: <1a5e2e62-2acb-4e28-8f75-96a0243cefe9_at_g38g2000yqd.googlegroups.com>



I'm using Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production With the Partitioning option JServer Release 9.2.0.7.0 - Production.

I'm in trouble using owa_pattern Oracle standard package.

Trying the following block:
  begin
  if owa_pattern.match(

'library\\source\\jtoru436.pxe',
'(source|include)\\jtor.*436[.].*')
  then dbms_output.put_line('Found');
  else dbms_output.put_line('NOT FOUND');   end if;
  end;

the output is "NOT FOUND".

The equivalent code written in Perl:

  print "Found" if 'library\\source\\jtoru436.pxe' =~ m/(source| include)\\jtor.*436[.].*/;

returns "Found".

What should I think about owa_pattern.match package ?

Matt. Received on Thu Feb 12 2009 - 03:51:59 CST

Original text of this message