Oracle 8 pattern matching

Hi all,
I need to extract some data from a text field in an Oracle 8 database. I also need to do this within a stored procedure.
The data in the text field is of variable length, and is unformatted, containing name value pairs and other items. Somewhere in the text will be a substring like "foobar=12345" (without the quotes), I want to return the value 12345. The text "foobar" is constant, but the following number is variable and of variable length.
The best approach I can think of is to find the location of the constant text "foobar=" and create a substring starting after the "=" and terminating on the first subsequent non-numeric character. However, I understand that regular expressions are not supported, or not well supported in Oracle 8.
How would you solve this? Sadly, remodelling the data to store the foobar value in its own field is not an option.
Thanks,
Jack

Does Oracle 8 have the OWA_PATTERN package?

Similar Messages

  • OBIEE 11G : Remove label (is like pattern match) in the prompt

    Hi Experts,
    I have Gone through this thread Re: OBIEE 11G : Remove label (is like pattern match) in the prompt and applied JS as mentioed but
    It works for the first display of the page but its back as soon as you hit the apply button
    can be it be removed permanently? Thanks in Advance

    Hi Nagen,
    You can try the following:
    Create a variable prompt with the column vales that you want to match
    Create a filter in the analysis criteria tab on the column, set to pick up the variable, and define the IS LIKE here.
    It is effectively doing the same task as the standard prompt approach does, but in a round-a-bout way which doesn't include adding any of Oracle's text in.

  • The featest pattern match

    Now I met a difficult question.Firstly,we have a criterion table as below:Combination Name     Service     UnitLength     UnitHeight     LoadStatus     Bill No ......(until unbounded fields). Some data like this
    Combination Name |     Service |     UnitLength | UnitHeight | LoadStatus |     Bill No ......
    COM1 | CSC | 40 | 96 |
    COM2 | CSC | 40 | 96 | F |
    COM3 | CSC | 40 | 96 | F | SEA-SCS
    If there is an object has the attribute UnitLength equal 40 and UnitHeight equal 96 the correct combination COM1 is selected;otherwise, if
    it has the attribute UnitLength equal 40  and UnitHeight equal 96 and LoadStatus equal F then the appropriate combination COM2 is selected; then if the object has UnitLength equal 40  and UnitHeight equal 96 and LoadStatus equal F  and many other conditions ,the featest  pattern match will be the completely match combination.But when there is no completely match combination,we may get a combination  closer match the object.For example,an object has the following attributes UnitLength equal 40 and UnitHeight equal 96 and LoadStatus equal F Bill No equal SEA-SCS* ,the best result will be COM3.
    How can we find a pl/sql procedure resolve this question?
    Thanks very much! Look forward to your answer!
    About the combination structure(Combinaton.xsd) as below:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0" xdb:storeVarrayAsTable="true">
         <xs:element name="()" type="CombinationType" xdb:defaultTable="COMBINATION"/>
         <xs:complexType name="CombinationType" xdb:SQLType="Combination_T">
              <xs:sequence>
                   <xs:element name="FilterNam" type="FilterNamType" xdb:SQLName="FilterNam"/>
                   <xs:element name="Priority" type="PriorityType" xdb:SQLName="Priority"/>
                   <xs:element name="FilterType" type="FilterType" minOccurs="0" xdb:SQLName="TYPE"/>
                   <xs:element name="Service" type="ServiceType" xdb:SQLName="Service"/>
                   <xs:element name="Operator" type="OperatorType" xdb:SQLName="Operator"/>
                   <xs:element name="OperTim" type="OperTimType" xdb:SQLName="OperTim"/>
                   <xs:element name="FilterItems" type="FilterItemsType" xdb:SQLName="FilterItems"/>
                   <xs:element name="PlanMatrix" type="PlanMatrixType" xdb:SQLName="PlanMatrix"/>
                   <xs:element name="Discription" type="DiscriptionType" xdb:SQLName="Discription"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="FilterItemsType" xdb:SQLType="FilterItems_T">
              <xs:sequence>
                   <xs:element name="FilterItem" type="FilterItemType" maxOccurs="unbounded" xdb:SQLName="FilterItem" xdb:SQLCollType="FilterItem_V"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="FilterItemType" xdb:SQLType="FilterItem_T">
              <xs:sequence>
                   <xs:element name="Charateristic" type="CharateristicType" xdb:SQLName="Charateristic"/>
                   <xs:element name="Oper" type="OperType" xdb:SQLName="Oper"/>
                   <xs:element name="Value" type="ValueType" xdb:SQLName="Value"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="PlanMatrixType" xdb:SQLType="PlanMatrix_T">
              <xs:sequence>
                   <xs:element name="PlanMatrixElement" type="PlanMatrixElementType" maxOccurs="3" xdb:SQLName="PlanMatrixElement" xdb:SQLCollType="PlanMatrixElement_V"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="PlanMatrixElementType" xdb:SQLType="PlanMatrixElementTypem_T">
              <xs:sequence>
                   <xs:element name="Interval" type="IntervalType" xdb:SQLName="Interval"/>
                   <xs:element name="DaysBfETD" type="DaysBfETDType" xdb:SQLName="DaysBfETD"/>
                   <xs:element name="Resevevation" type="ResevevationType" xdb:SQLName="Resevevation"/>
                   <xs:element name="Algorithm" type="AlgorithmType" xdb:SQLName="Algorithm"/>
                   <xs:element name="HDP" type="HDPType" xdb:SQLName="HDP"/>
              </xs:sequence>
         </xs:complexType>
         <xs:simpleType name="FilterNamType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="30"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="OperatorType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="10"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="ServiceType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="20"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="FilterType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="4"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="PriorityType">
              <xs:restriction base="xs:integer"/>
         </xs:simpleType>
         <xs:simpleType name="OperTimType">
              <xs:restriction base="xs:date"/>
         </xs:simpleType>
         <xs:simpleType name="CharateristicType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="OperType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="10"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="ValueType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="DiscriptionType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="IntervalType">
              <xs:restriction base="xs:integer"/>
         </xs:simpleType>
         <xs:simpleType name="DaysBfETDType">
              <xs:restriction base="xs:integer"/>
         </xs:simpleType>
         <xs:simpleType name="ResevevationType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="AlgorithmType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="1"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="HDPType">
              <xs:restriction base="xs:string">
                   <xs:minLength value="0"/>
                   <xs:maxLength value="35"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>
    And the data(Combination.xml) like that:
    <Combination
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://localhost/xml_test//Combination.xsd">
    <FilterNam>40/8.6/F/BILL</FilterNam>
    <Priority>5</Priority>
    <Service>KR-SHIPPING-LINE</Service>
    <Operator>ZHANGRUI</Operator>
    <OperTim>2010-06-09</OperTim>
    <FilterItems>
    <FilterItem>
    <Charateristic>UnitLegth</Charateristic>
    <Oper>=</Oper>
    <Value>40</Value>
    </FilterItem>
    <FilterItem>
    <Charateristic>UnitHeigh</Charateristic>
    <Oper>=</Oper>
    <Value>8.6</Value>
    </FilterItem>
    <FilterItem>
    <Charateristic>LoadStatus</Charateristic>
    <Oper>=</Oper>
    <Value>F</Value>
    </FilterItem>
    <FilterItem>
    <Charateristic>BillNo</Charateristic>
    <Oper>=</Oper>
    <Value>SEA-BILLING-NO.1</Value>
    </FilterItem>
    </FilterItems>
    <PlanMatrix>
    <PlanMatrixElement>
    <Interval>1</Interval>
    <DaysBfETD>3</DaysBfETD>
    <Resevevation>1 BAY</Resevevation>
    <Algorithm>MIX VESSEL</Algorithm>
    </PlanMatrixElement>
    </PlanMatrix>
    </Combination>
    Edited by: user10904897 on 2010-6-9 下午8:23
    Edited by: user10904897 on 2010-6-9 下午8:57

    my best would be to do something like the following since i don't have oracle and can't simulate it right now:
    select a.*,
           case when unitlength = 40 and unitheight = 96 and loadstatus ='F' and billno = 'SEA-SCS' then 'COM3'
                  when unitlength = 40 and unitheight = 96 and loadstatus ='F' and billno != 'SEA-SCS' then 'COM2'
                  when unitlength = 40 and unitheight = 96 and loadstatus != 'F' then 'COM1'
                  else 'print what ever you want'
           end
    from <table_name>
    where <any_conditions_you_want_if_any>
    ;

  • Need to know the best method for pattern matching

    Hi,
    I need a best a way to do the pattern matching with better performance
    for the following requirement.
    i need to search for a set of records as per the following requirements.
    1. The input string will be split into tokens with space as delimiter
    so if the user enters the text 'severe head ache',the tokens formed will be
    severe
    head
    ache
    2. The terms which contain exact match of the tokens formed should be fetched from the database
    (i.e)
    i. the token should appear in the term as such and no alpha-numeric character should be appended to it but a single space or any single non alpha-numeric characer is allowed
    ii. the token may occur anywhere in the string.(like start, end, middle etc.)
    iii. the term should contain all the tokens
    For ex. the following terms will be fetched for the above input
    1. patient has severe head ache
    2. severe, head ache are present
    3. leg pain "severe" #head pain
    4. pain, severe in head, leg
    But following terms should not be fetched
    1. severe leg pain - (it does not have the token 'head')
    2. headache severe and leg pain - (head is a part of the word headache)
    3. head67 severe pain - (head is a part of the word head67)
    Thanks

    How about Oracle Text? There's even a Text dedicated on this topic here.
    C.

  • Finding pattern match based on Octal characters

    I have Octal values of various characters. For example:
    € = Octal value 128
    I need to use the Octal values of various extended ascii characters and based on these values I need to do a pattern search.
    According to the pattern class document, I can represent octal as:
    patternStr = "\\o128";
    http://download.oracle.com/javase/1....x/Pattern.html
    Pattern p = Pattern.compile(patternStr);
    Matcher m = p.matcher("aaaaab€aaaaa");
    boolean b = m.matches();
    If I do the above, then the match is not found. Can anyone tell me why? What is that is wrong in this code.
    Mark

    Effectively the same question as Pattern match on hex code where there's some discussion, and possibly a solution.
    Please post your questions only once.

  • Getting Log File Pattern Matched Line Count metric to work ?

    Hi
    has anyone been able to get this to work with more complex Perl expressions ?
    Basically I can get simple, single expressions to match.
    EG *(does not exist)* will match the text *"does not exist"* anywhere in a file.
    However, if I want to match either does not exist OR file not found I should be able to do something like
    *(does not exist)|(file not found)* OR *(does not exist|file not found)* but this just doesn't work.
    I want to be able to do more complex expressions, using *\i* (ignore case), and *^* (start of line) *$* (end of line) expressions too.
    I can test the matching functionality using a simple perl program, and I know the expression works in Perl.
    Oracle is supposed to be using a perl pattern match but seems to fail unless it is a single simple expression.
    Anyone been able to use this functionality at all.
    Many thanks.

    I have a chance to look into the parse-log1.pl script which is responsible for monitoring the log files and generating the alerts for EMGC. I am just pasting the comments given in this file
    # This script is used in EMD to parse log files for critical and
    # warning patterns. The script holds the last line number searched
    # for each file in a state file for each time the script is run. The
    # next run of the script starts from the next line. The state file name
    # is read from the environment variable $EM_STATE_FILE, which must
    # be set for the script to run.
    but in my case this is not happending according to log files it is storing the lst read line of the log file but it is not using that info in its next run. The file will be scanned from the begining again but this is not the case with emagent.log file monitoring its working fine as expected and explained in the script file.
    According to my observation this is becasue of the script is rotating my log file for each run i dont know how stop it. I just want to scan my log file I dont want to rotate my log file for each run of the script. Could any one please help me to solve this problem
    Thanks
    Ashok Chava.

  • How do I set multiple pattern matching Vi's and make overlappin​g pattern matches to count as one?

    Hello! I'm a student and I'm currently making a project using pattern matching.
    My patterns are from chick foot/feet.
    I'm  created multiple pattern matching VI's to detect all the feet because I find it difficult/impossible to match all the feet with a single pattern/template.
    However, when using multiple pattern matching VI's some pattern matches detect the same foot, hence overlapping.
    So how can I make the overlaping pattern matches to be counted as one?
    Thank you in advance

    Thank you for replying Sir Zwired1.
    I'm still a newbie in using LabVIEW so pardon me if I can't understand fully
    The objective of my project is to detect all the feet through pattern matching and count the pattern matches made.
    "Keep a 2D array of counts, initialized to zero and the same size as your array of possible locations, and increment the value every time you get a match. If multiple pattern matching attempts result in a match a given location in your count array might be "3" but all you care about is if the number is greater than zero."
    I'm sorry, but how do you do this? BTW, I'm using vision assistant.

  • Trouble using a pattern match in the GO URL when the value starts with %

    Hi guys,
    We are trying to use a Go URL as follows:
    [http://hostname.com:9704/analytics/saw.dll?Go&Path=/users/administrator/Test/TestReport&Action=Navigate&col1=TestReport.SUBJECT&op1=like&val1="%25D8D8%25"|http://hostname.com:9704/analytics/saw.dll?Go&Path=/users/administrator/Test/TestReport&Action=Navigate&col1=TestReport.SUBJECT&op1=like&val1="%25D8D8%25"]
    Basically, we want to send the filter : SUBJECT like '%D8D8%' in the GoURL. However, the report that opens up does not fetch any rows because BI somehow messes up the clause by not recognizing the leading %25 (which is an escaped % character). Instead it resolves the %25D8D8%25 into something like �D8% .
    As you can see, the %25 at the end however gets resolved correctly but somehow the one at the beginning gets clubbed with the leading D8 to give �.
    Any idea, how to get BI to accept a leading escaped % character when doing a pattern match in the Go URL?

    I'm heading to the Apple Store in Danbury CT tomorrow to test out a MacBook Pro. I'll happily post what I like and dislike here.
    Waiting for a MacBook Pro...   Other OS  

  • How can I read a template and differentiate if it is a pattern matching template or a geometric matching template?

    Hey all,
    I would like to know how can I read a template´s information to know if it is a pattern macthing or a geometric matching template? 
    In my code, users provide templates and the algorithm must match them using pattern matching or geometric matching depending on the template.
    At the moment I am doing it by including a P or a G in the name of the file, but I would like to avoid this and read the information from the file.
    Any ideas?
    Thanks in advance,
    Esteban
    Solved!
    Go to Solution.

    Hey Esteban,
    you can use the VI "IMAQ Is Vision Info Present 2 VI" to reice the information:
    IMAQ Is Vision Info Present 2 VI - NI Vision 2011 for LabVIEW Help - National Instruments
    http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_is_vision_info_present_2/
    Take a look at the attached VI
    Stephan
    Attachments:
    Determine Pattern type.zip ‏13 KB

  • Is there a way to turn the pattern matching example in Labview to instead of loading a rectangle around what you want the template to be you can use an image display , I've be trying and can get no where with it

    What I want to do is , have two images on image displays and the pass them through the same setup as the pattern matching example to get the number of matches , I have attached what I have done and also given the pattern matching example program as well.
    Hope to get answers back soon,
                                     Thanks Alan
    Attachments:
    screenshot.docx ‏48 KB
    Pattern Matching Example.vi ‏100 KB

    Hi there!
    The example used can be adapted for comparing two images, however the algorithm and coding for finding the differences is more specific to your actual problem. In terms of the loading and displaying of the images, this can be done in the same way.
    Once you have some sort of algorithm, then you can automate the learning and matching by simply wiring them in order. (in the example, these are put in case structures as they are waiting on response from the front panel)
    I hope that this helps,
    Liam A.
    National Instruments
    Applications Engineer

  • Regular Expressions (Pattern/Matcher) --- Help

    Hi,
    I have an regex i.e. Pattern.compile("([0-9])D([0-9])'?(?:([0-9]+)\")?([NSEW])").{code}
    It has to exactly match the input e.g *45D15'34"N*
    I need to retrieve the values based on grouping.
    Group1 = 45 (degree value)
    Group2 = 15 (minutes value)
    Group3 = 34 (seconds value) ----> this is a non-capturing group
    Group4 = N (directions)
    The regex works fine for most of longitude/latitude value but I get a StackOverFlow for some. There is a known bug on this http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050507
    According to the bug report, they have said that are many different regex that can trigger the stack overflow....even though the length of my input is not as long as the one posted on the bug report.
    I was wondering if anyone could suggest a different way of writing the regex above to avoid the stack over flow.
    Thank you in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I missed the '+' in my original regex Pattern.compile("([0-9]+)D([0-9]+)'?(?:([0-9]+)\")?([NSEW])"){code}.
    I have also tried {code} Pattern.compile("(\\d+)D(\\d+)'?(?:(\\d+)\")?([NSEW])");And, the other 2 expressions as suggested by you.
    The problem happens when Durham Lat=”35D52’N” Lon=”78D47’W value is selected from a Jtree(the values are parsed from a xml file to the tree - the xml file has a bout 800 longitude/latitude elements for different cities in the US). It does not happen for other values and If I increment the degree or min by, then the expression works. I am not sure how else i could re-write this exp.
    Below is the snippet of the xml file:
    <State name="NORTH CAROLINA">
                <City name="Asheville AP"     Lat="35D26'N"     Lon="82D32'W"/>
                <City name="Charlotte AP"     Lat="35D13'N"     Lon="80D56'W"/>
                <City name="Durham"     Lat="35D52'N"     Lon="78D47'W"/>
                <City name="Elizabeth City AP"     Lat="36D16'N"     Lon="76D11'W"/>
                <City name="Fayetteville, Pope AFB" Lat="35D10'N"     Lon="79D01'W"/>
                <City name="Goldsboro,Seymour-Johnson"     Lat="35D20'N"     Lon="77D58'W"/>
                <City name="Greensboro AP (S)"     Lat="36D05'N"     Lon="79D57'W"/>
                <City name="Greenville"     Lat="35D37'N"     Lon="77D25'W"/>
                <City name="Henderson"     Lat="36D22'N"     Lon="78D25'W"/>
                <City name="Hickory"     Lat="35D45'N"     Lon="81D23'W"/>
                <City name="Jacksonville"     Lat="34D50'N"     Lon="77D37'W"/>
                <City name="Lumberton"     Lat="34D37'N"     Lon="79D04'W"/>
                <City name="New Bern AP"     Lat="35D05'N"     Lon="77D03'W"/>
                <City name="Raleigh/Durham AP (S)"     Lat="35D52'N"     Lon="78D47'W"/>
                <City name="Rocky Mount"     Lat="35D58'N"     Lon="77D48'W"/>
                <City name="Wilmington AP"     Lat="34D16'N"     Lon="77D55'W"/>
                <City name="Winston-Salem AP"     Lat="36D08'N"     Lon="80D13'W"/>
            </State>
    public final class GeoLine {
        /* Enum for the possible directions of longitude and latitude*/
        public enum Direction {
            N, S, E, W;
            public boolean isLongitude() {
                return (this == E || this == W);
            public boolean isLatitude() {
                return (this == N || this == S);
            public Direction getCanonicalDirection() {
                if (this == S) {
                    return Direction.N;
                } else if (this == W) {
                    return Direction.E;
                } else {
                    return this;
        private final int degree;
        private final int minute;
        private final int second;
        private final Direction dir;
        /* Recognizes longitude and latitude values that has degrees, minutes and seconds i.e. "45D15'34"N
        * or "45D1534"N. The single-quotes for the minutes is optional. And, for the moment we do not support seconds
        * validation although ilog library returns the longitude/latitude with second when NEs and Sub-networks are
        * dragged and dropped on the map.*/
    private static final Pattern PATTERN = Pattern.compile("([0-9]+)D([0-9]+)'?(?:([0-9]+)\")?([NSEW])");
        public GeoLine(int degree, int minute, Direction dir) {
            this(degree, minute, 0, dir);
        public GeoLine(int degree, int minute, int second, Direction dir) {
            Log.logInfo(getClass().getSimpleName(), "PAU degree: " + degree + " minute: " + minute + " second: " + second + " direction: " +  dir);
            verifyLongitudeLatitude(degree, dir);
            verifyMinute(degree, minute, dir);   
            this.degree = degree;
            this.minute = minute;
            this.second = second;
            if (this.degree == 0 && this.minute == 0 && this.second == 0) {
                this.dir = dir.getCanonicalDirection();
            } else {
                this.dir = dir;
        public Direction getDirection() {
            return dir;
        public int getMinute() {
            return minute;
        public int getDegree() {
            return degree;
        public int getSecond() {
            return second;
        public static GeoLine parseLine(String location) {
            * Matcher class will throw java.lang.NullPointerException if a null location
            *  is passed, null location validation is not needed.
            Matcher m = PATTERN.matcher(location);
            if(m.matches()) {
                int deg;
                int min;
                int second;
                Direction direction;
                deg = Integer.parseInt(m.group(1));
                min = Integer.parseInt(m.group(2));
                if (m.group(3) == null) {
                    second = 0;
                } else {
                    second = Integer.parseInt(m.group(3));
                direction = Direction.valueOf(m.group(4));
                return new GeoLine(deg, min, second, direction);
            } else {
                throw new IllegalArgumentException("Invalid location value. Expected format XXDXX'XX\"[NSEW] " + location);
        private void verifyMinute(int deg, int min, Direction direction) {
            /* This validation is to make sure that minute does not exceed 0 if maximum value for latitude == 90
            * or longitude == 180 is specified */
            int maxDeg = direction.isLatitude() ? 90 : 180;
            if(min < 0 || min > 59) {
               throw new NumberFormatException("Minutes is out of range. Value should be less than 60: " + min);
            if (deg == maxDeg && min > 0) {
                throw new NumberFormatException("Degree value " + deg + "D" + direction + " cannot have minute exceeding 0: " + min);
        private void verifyLongitudeLatitude(int valDeg, Direction valDir) {
               int max = valDir.isLatitude() ? 90 : 180;
               if(valDeg < 0 || valDeg > max) {
                    throw new NumberFormatException("Degree " + valDeg + valDir + " is invalid");
        public final boolean isLongitude() {
            return dir.isLongitude();
        public final boolean isLatitude() {
            return dir.isLatitude();
        @Override
        public final String toString(){
            if(minute < 10){
                return degree + "D0" + minute + dir;
            } else {
                return degree + "D" + minute + dir;
        @Override
        public boolean equals(Object obj) {
            if (obj instanceof GeoLine) {
                GeoLine other = (GeoLine) obj;          
                    return (this.degree == other.degree && this.minute == other.minute && this.second == other.second && this.dir == other.dir);
            return false;
        @Override
        public int hashCode() {
            int result = 17;
            result = result * 37 + degree;
            result = result * 37 + minute;
            result = result * 37 + second;
            result = result * 37 + dir.hashCode();
            return result;
    }Thank you again.

  • Mod_security: Access denied with code 405. Pattern match "!(GET|HEAD|POST)

    Hi all,
    After Cloning facing an issue
    mod_security: Access denied with code 405. Pattern match "!(GET|HEAD|POST)"
    and not able to get the login prompt
    EBS: 12.1.3
    DB:11G
    Please help as this is urgent.
    Regards,
    Raj.

    Hi Hussein/Srini,
    My OS details are as follows
    Source OS : OE Linux 5X
    Target : REHL
    DB : 11.2.0.3
    In my previous cloning the R12 login URL was not getting redirected to https from http. This backup was given by client last week and I completed the cloning and post cloning procedures without any error, but unable to login as the page is redirecting to https:/hostname:port/OA_HTML/AppsLogin.
    I have done the following so far, but the issue is not getting resolved.
    1) Generated JAR files using ADADMIN (Force)
    2) Compiled JSP
    3) Ran autoconfig multiple times without any error in both db and application tiers.
    4) DB alert log did not have any error.
    5) Executed relink all from APPL_TOP
    6) Able to launch http://XXXXXXXXX:XXXX/forms/frmservlet?
    Kindly help me out on this
    Regards

  • Who knows how to output some text once labview detects something I want using pattern matching(V​ision assistant)​?

    who knows how to output some text once labview detects something I want using pattern matching(Vision assistant)?
    The text is something like"Yes, this is a coin"
    Thanks!

    I attached a SubVI which I used to place an overlay next to a Pattern, found by a Pattern Match before:
    As you can see, you simply pass the image reference and the Array of Matches to the VI along with the String you want to have as an overlay next to the Match.
    I also modified your VI a bit, but didn't test it. I created an Array of clusters, each elment containing the template path along with the respective text.
    Please note that this is just a hint!
    Christian
    Attachments:
    suggestion.vi ‏146 KB
    Overlay_Txt.vi ‏24 KB

  • How to use AND,OR,NOT condition in Pattern Matching in java

    how to use AND,OR,NOT condition in Pattern Matching in java
    Please anyone give example..

    Stop asking these stupid vague questions and do some of your own research.
    Start here:
    http://www.regular-expressions.info/
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • Pattern Matching and Vision Builder 6.0

    Hi,
    When I select a ROI from an image to generate a pattern matching, Builder
    saves it as a PNG file.
    If I open this pattern in other application (Paint Shop Pro 7) to modified
    it and save as a PNG file, after I can't open this file as a pattern into
    Builder, because it is considered as a not valid PNG file.
    I have tested this case in LabView 6.i and this problem doesn't appear.
    Any solution? Thanks.

    When the template is first saved in Vision Builder, pattern matching information is stored in the header of the PNG file. This information lets LabVIEW and Vision Builder know how the template was learned. Paint Shop Pro does not keep this information in the file whenever it is saved so Vision Builder will not recognize it as a valid pattern matching template.
    Jack Arnold
    Application Engineer
    National Instruments

  • Pattern matching problme - not getting desired result.

    Hi,
    According my program , If 'san' is in 'sangeetha', then it should display "hello".
    but I am getting only 'hi'
    Why ? any idea?
    <%@ page import="java.util.regex.Pattern"%>
    <%
    if(Pattern.matches("san", "sangeetha"))
    out.println("hello");
    else
    out.println("hi");
    %>
    Result : Hi

    sangee wrote:
    Hi,
    According my program , If 'san' is in 'sangeetha', then it should display "hello".No, that isn't what your patten say. You should read about regular expressions and learn how to use them, or switch to String.indexOf or contains.
    Kaj

Maybe you are looking for

  • Excise Duty Not  geting calculated in Export excise Invoice

    Hi; As subject line specifies; in J1IIn for export excise invoice after pressing the calculate button system does not calculate the excise duty in document. This leads to no value in ARE1 & no consumption of  bond Value. Kindly let me know  what kind

  • Can't add mp3s to iTunes libaray

    Hi, I've been having various issues with my iTunes library and duplicate tracks, so I decided to wipe everything and start fresh. Before I uninstalled, I was having problems adding songs to my library. I don't typically store the songs in my library,

  • Different ways to create content in dreamweaver

    So Its been a while since I used Dreamweaver, and from what I remember, there was a way for me to "draw" a box on a page, and then I could put text , images or anything else I needed on the page. It probably wasn't the most professional way to create

  • Coloring Zsh

    I have a lot of questions about coloring zsh. I've read a LOT about coloring zsh and simply can't grasp some of the concepts. Here is my current ~/.zshrc: # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 seto

  • How can  edit the Bit Rate on my music?

    I have downloaded some lectures that are below 128 Bit Rate, so they are not being uploaded onto iTunes Match. I was told to change the Bit Rate to 128, and that would solve the problem. How do I do that????