Suppose that *a* is a Java identifier. I would like a regex to match things like this:
\#a
\#a.a.a (a any number of times)
but not this:
\#a. (ending with dot)
So in a phase like this: "#a.a less than #a." it would match only the first \#a.a (because it doesn't end with a dot).
This regex:
\#[a-zA-Z_$][\\w$]*(\\.[a-zA-Z_$][\\w$]*)*
almost does the job, but it matches the last case too.
Thank you.
Marcos
 
     
     
    