Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6974639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:15:51+00:00 2026-05-27T17:15:51+00:00

Ever since my awful experience with cssparser, I have set myself the task of

  • 0

Ever since my awful experience with cssparser, I have set myself the task of implementing a CSS parser in Java using Parboiled. I already have all color specification covered, but of course I need all the rest…

So, I went to look for the CSS specification and found it on the W3C website. I am now in the process of writing rules for all “atoms”, but found something disturbing in this section:

UNICODE-RANGE   u\+[0-9a-f?]{1,6}(-[0-9a-f]{1,6})?

The part that disturbs me is the question mark in [0-9a-f?].

The paragraph heading says the regular expressions used here are Lex-style. The ? has no special meaning in a character class (thanks @scizzo for the confirmation). So, is this a typo in the W3C specification, or is ? really allowed in a Unicode range? If yes, what does it mean?

Wrap up: I have my answer. However, the specification is wrong: a “question mark unicode range” can only be by itself. Given the above regex, this expression would be allowed whereas it is clearly illegal: u+4??-733f

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:15:52+00:00Added an answer on May 27, 2026 at 5:15 pm

    Yup, that’s a literal question mark. From the Flex documentation:

    Note that inside of a character class, all regular expression operators lose their special meaning except escape
    (‘\’) and the character class operators, ‘-‘, ‘]’, and, at
    the beginning of the class, ‘^’.

    Now, according to the W3C, ? can be used as a kind of wildcard:

    ? characters imply ‘any digit value’ (e.g. U+4??)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ever since the publication of Enterprise Integration Patterns people have been using the notation
Ever since I gained experience at a software house I have found it difficult
Ever since getting out of college (06) I have primarily worked with java and
Ever since I started using .NET, I've just been creating Helper classes or Partial
Ever since I upgraded to Delphi 2009, I am having terrible experience with TFrame
Ever since deleting the original settings.settings file I have had endless problems getting the
Ever since I installed emacs on a new machine I have seen an ugly
Ever since I moved from VB6 to VB.NET somewhere in 2005, I've been using
Ever since reading Clean Code I have been trying to keep my code descriptive
Ever since I started using an ORM for my day to day data access.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.