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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

regular expression 7
Regular expression 4
Regular Expression Question 12
Regular expression 5
Excel Need Countifs Formula Help 0
Regular express question 5
Regular expressions 20
Excel Macro to automatically go to the right of the last colored cell 0

Back
Top