From: <ch...@pm...> - 2008-05-27 05:33:14
|
you need "(ab)" instead of "ab" for search pattern. I guess ^.^ ________________________________ From: icu...@li... [mailto:icu...@li...] On Behalf Of Zhi Bo Zuo Sent: Tuesday, May 27, 2008 2:20 PM To: icu...@li... Subject: [icu-support] problem of Regular Expressions in ICU4c 3.4.1 Hi, I'm using ICU4C 3.4.1 and have problem when using Regular Expressions APIs. I use uregex_find() first to get whether it matches or not, then call uregex_groupCount() to get the match information. But uregex_groupCount() always return 0. For example: Pattern string: ab Source String: testabtest then uregex_groupCount() should return 1, but it return 0. Any one can tell me where is wrong? thanks. -Zhi Bo Zuo |