in Search
     
Latest post 07-11-2007 12:54 PM by jokiz. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-11-2007 9:04 AM

    • lamia
    • Top 10 Contributor
    • Joined on 06-20-2006
    • Sampaloc, Manila
    • Posts 752
    • Points 13,185

    Does anybody know why there's no regex support for Blackberry?

    I browsed the java 1.4 API and java.lang.String have a matches() method there. Why is it that I can't use it with the blackberry JDE? Are there performance issues regarding this?

     

    I trie to use the StringPattern class but as of this moment I am still very confused on how to use it. I'm trying to follow this example. Any help would be appreciated. Thanks!

     

    Convert limitations to great expectations... You are the creative force of your life...

    • Post Points: 5
  • 07-11-2007 9:09 AM In reply to

    • lamia
    • Top 10 Contributor
    • Joined on 06-20-2006
    • Sampaloc, Manila
    • Posts 752
    • Points 13,185

    Re: Does anybody know why there's no regex support for Blackberry?

    BTW, I am using the following methods as of this moment...

     
    startsWith = contactName.startsWith(searchParameter);
    endsWith = contactName.endsWith(searchParameter);          
    inBetween = contactName.indexOf(searchParameter) > 0;

     

    if (startsWith || endsWith || inBetween){
        v.addElement(contact);
    }

     

    problem is that it's case sensitive... 

     

    Convert limitations to great expectations... You are the creative force of your life...

    • Post Points: 5
  • 07-11-2007 9:17 AM In reply to

    • lamia
    • Top 10 Contributor
    • Joined on 06-20-2006
    • Sampaloc, Manila
    • Posts 752
    • Points 13,185

    Re: Does anybody know why there's no regex support for Blackberry?

    shame on me. There's a toUpper() method for String. Hahaha! 

     

    Convert limitations to great expectations... You are the creative force of your life...

    • Post Points: 20
  • 07-11-2007 12:54 PM In reply to

    • jokiz
    • Top 10 Contributor
    • Joined on 08-10-2005
    • Singapore
    • Posts 1,098
    • Points 18,030

    Re: Does anybody know why there's no regex support for Blackberry?

    same reason why we have the .NET compact framework which is a stripped down version of the big .NET framework for small devices

    • Post Points: 5
Page 1 of 1 (4 items)