|
|
|
replace all case insentittive-нужна помощь
|
|||
|---|---|---|---|
|
#18+
Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. С анг. работает а с русским нет. Хотелось бы сделать так чтобы и с русским языком работало, нужна ваша помощь. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.04.2012, 12:36:48 |
|
||
|
replace all case insentittive-нужна помощь
|
|||
|---|---|---|---|
|
#18+
justcoder, может нужно указать кодировку? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.04.2012, 12:54:41 |
|
||
|
replace all case insentittive-нужна помощь
|
|||
|---|---|---|---|
|
#18+
авторIncredible thought it may seem, Java defaults to only understanding ASCII; it ignores its own native charcter set. So you always need to add “(?u)” to make case insensitivity work on normal Java text, which is Unicode not ASCII. Also, if you expect things like \w to work on regular Java text, you need to add “(?U)”, which isn’t even supported until Java J. In short, you normally want “(?iu)” for case insensitivity, and you want “(?U)” for the UNICODE_CHARCLASSES flag. Note that this is still only the simplistic kind of case insensitivity as provided by the Character class, not full casemappings such as provided by the String class. That will be ok for Spanish and Portuguese, but not for German or Greek. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.04.2012, 12:57:31 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=37758918&tid=2132000]: |
0ms |
get settings: |
14ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
48ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
61ms |
get tp. blocked users: |
2ms |
| others: | 351ms |
| total: | 519ms |

| 0 / 0 |
