DevPinoy.org
A Filipino Developers Community

>>> First two to make 3 wins! <<<

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

rated by 0 users
This post has 3 Replies | 1 Follower

Top 10 Contributor
Posts 762
Points 13,330
lamia Posted: 07-11-2007 9:04 AM

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
Top 10 Contributor
Posts 762
Points 13,330

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
Top 10 Contributor
Posts 762
Points 13,330

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
Top 10 Contributor
Posts 1,100
Points 17,955

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) | RSS

Copyright DevPinoy 2005-2008