Hi,
I am looking for a regular expression that will find something like
that
"Word.word"
But also:
"Word.*"
I came up with:
\b\[?[A-Za-z_][A-Za-z_0-9]*\]?\.[?[A-Za-z_*][A-Za-z_0-9]*\]?\b
each 'word' begins with a letter and can have numbers after it, and
can have brackets. It all works, but fails when I want to find the 2nd
example, like 'something.*', (last word can be a * in addition to
just text) which is where I am stuck. I originally started with this:
\b\[?[A-Za-z_][A-Za-z_0-9]*\]?\.[?[A-Za-z_][A-Za-z_0-9]*\]?\b
And then added the * there (the [A-Za-z_*] in:
\b\[?[A-Za-z_][A-Za-z_0-9]*\]?\.[?[A-Za-z_*][A-Za-z_0-9]*\]?\b) as part
of the character class. WHY DOES IT NOT FIND IT? Thanks!