I am using the the second one i.e Less CPU intensive regular expression
%{WORD:whatever}\[(User\(%{WORD:user}\)%{SPACE}(Sponsor\(%{WORD:sponsor}\))?)?\]
it parsing only
ABC[]
ABC[User(UserID)]
its failing to parse with above mentioned regEx
ABC[User(UserID) Sponser(SponserName)]
you are adding ? after the brace () it means it remove that brace?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.