1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Question about input of scanners in flex

  1. Oct 22, 2016 #1
    1. The problem statement, all variables and given/known data
    I have the following set of definitions

    CHARCON ('([^\\'\n]|\\[\\'"0nt])')
    BAD_CHARCON ('([^\\'\n]|\\[\\'"0nt]|\\[^\\'"0nt])?[']?[\n]?)

    My questions are what is a charcon?, why does it have such weird characters and why are the characters of BAD_STRINGCON bad characters?

    2. Relevant equations

    3. The attempt at a solution
  2. jcsd
  3. Oct 23, 2016 #2


    User Avatar

    Staff: Mentor

    You need to consider these in the context of the program where they are found if you hope to make sense out of them. These expressions are composed of what are known as regular expressions.

    In the absence of context, I can imagine that CHARCON might be those CHARACTERS which are allowed to be CONTAINED within whatever it is that the routine will process. Google might be able to help you here.

    Perhaps this thread would be a better fit in our Programming & Computer Science forum?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted