Print page range - regular expression

  • Thread starter Thread starter Christian H
  • Start date Start date
C

Christian H

Hello!

I'm trying to create and extract the values of a Print-Range , "Print page"
dialog.
I have a textfield where the user can enter the pages they whish to print.

The format can be: "number,number,number" , "number-number" or "number".
I'm trying to use Regular expressions to check if they have used the proper
format, and if the format is proper, extract the "number" values from the
string.

However, I seem to be doing something very wrong, I can't seem to get it
working.
Does anyone have a little more reg.exp experience then me, and could show me
how to do this?


Christian H
 
Back
Top