aspose file tools*
The moose likes Beginning Java and the fly likes Number Format Pattern Syntax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Number Format Pattern Syntax " Watch "Number Format Pattern Syntax " New topic

Number Format Pattern Syntax

Emma Peel

Joined: Feb 18, 2003
Posts: 10
Can anyone explain how to read:

'\\u0000'..'\\uFFFD' - specialCharacters
It is part of Number Format Pattern Syntax:
pattern := subpattern{;subpattern}
subpattern := {prefix}integer{.fraction}{suffix}
prefix := '\\u0000'..'\\uFFFD' - specialCharacters
suffix := '\\u0000'..'\\uFFFD' - specialCharacters
integer := '#'* '0'* '0'
fraction := '0'* '#'*
found at
Thanks! Emma Peel
Greg Charles

Joined: Oct 01, 2001
Posts: 2771

Greetings Mrs. Peel,
That link you provide has examples of building patterns for number formatters. (java.text.NumberFormat) The extra unicode characters allow you to parse and format strings with more than just numbers, for example a currency character.
One example they give is:
That pattern lets you parse or format string with the Yen sign in front of a series of numbers.
It is sorta covered in the JavaRanch Style Guide.
subject: Number Format Pattern Syntax
Similar Threads
regarding regex syntax
Calculation displays scientific format instead of a whole number
About String.format()
what is size of char in java5?
Eclipse Europa and Eclipse web tools...