#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    8
    Rep Power
    0

    Regex pattern which will match superscripts digits (only)?


    I found that superscripts digits (coding UTF-8): ⁴⁵⁶⁷⁸⁹⁰ doesn't match \d+

    Which regex pattern will match one or more superscripts digits and only to it?
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    if your source code is UTF-8 encoded, just write the numbers down. Superscripts 4 to 9 directly follow each other, so you can use the "-" notation. If your program doesn't support direct UTF-8 input, use the code points:
    http://www.fileformat.info/info/unic...ry/No/list.htm
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    8
    Rep Power
    0
    Thank You.

IMN logo majestic logo threadwatch logo seochat tools logo