regex - Java literate text word parsing regexp -
firstly happy [a-za-z]+
need parse words end letter "s", should skip words have 2 or more first letters in upper-case.
try [\n\\ ][a-za-z]{0,1}[a-z]*s[ \\.\\,\\?\\!\\:]+
first part of [\n\\ ]
reason doesn't see beginning of line.
here example
text denis goes school every day!
parsed word goes
any ideas?
what about
\b[a-z]?[a-z]*x\b
the \b
word boundary, assume wanted. ?
shorter form of {0,1}
Comments
Post a Comment