I'm a beginner in these regular expressions and I could not understand the meaning of optional occurrence and zero or more occurrence correctly.(I'm using JavaCC regular Expressions)
For example,
if I need to match a name like "file" ,which may also contain a number ,I can use
["a"-"z"]*[0-9]?
but can I use
["a"-"z"]*[0-9]*
to match the name "file" since I'm using "zero or more occurrence" for numbers?