Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry Bold- Unable to recognize URLs and even custom patterns registered

We have a blackberry native app deployed on a BB Bold 9700 (OS Version: 5.0)

The app registers a custom pattern of the form string://[0-9]* . Strings matching the pattern get highlighted but the app does not receive the complete string

Also, with URLs recognized and highlighted, when launched, the BB browser receives only a partial string - http://

This bug is observed with BB Bold 9700 (OS Version: 5.0) only.

Couple of more questions

  1. Is there way to find all system patterns registered with a blackberry device?
  2. How does blackberry resolve conflict if a text is matched by more than one pattern?

in my case both texts "http://urlline" and "string://customtext" got clipped to "http:// and string" respectively.

like image 373
Dakshina Ilangovan Avatar asked Nov 23 '11 03:11

Dakshina Ilangovan


1 Answers

What I'm about to propose is trivial, I'm aware of it, but did you try:

\w+\:\/\/[\w\d\.\,\:\;]+

This would match a string before colon, the colon, the double slash and whatever letter or number or punctuation after it (obviously you can furtherly specialize the expression).

I'm not a BlackBerry developer, so I'm not able to respond to your other questions, I apologize for that.

Anyways, for every doubt or clarification you could rely on this site here.

like image 156
Federico Zancan Avatar answered Oct 31 '22 19:10

Federico Zancan