I'm new with this jflex and regular expressions I read a lot even though I know I faced the solution in the manual but really I can't understand these regular expressions. I want simple read a text file with jflex and return every line that starts with name =
or name=
but this was a pain for me for 1 week I'm reading all regular expressions in the jflex document but I can't understand which one I can use to achieve it anyone can help me out? with jflex rules and any code to contain that?
this is the example input and output
bla bla bla
bla bla bla
name=StackOverFlow
name = ThisIsGo
bla bla bla
Output:
StackOverFLow
ThisIsGo