cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get text from content by REGEX

thanawat
Newcomer

I have this message "Exception org.springframework.web.servlet.resource.NoResourceFoundException".

I want to find the latest section of this message which is "NoResourceFoundException".
I prefer to find the text after latest "." dot.

Can I do this?

4 REPLIES 4

michal_lewi
Helper

Try use this regex:

.+\.(.+)$

Peter_Youssef
Leader

Hi @thanawat 
you can create a query to return the value after "."

or create a rule to fetch exact message in the exception after "."

BR,

Peter

thanawat
Newcomer

Hi @michal_lewi , @Peter_Youssef 
thank for your suggestion. Could you share the link for the solution that you mention?
I mean how to use regex with DQL or example query to get expected value.

Hello @thanawat 

10 - 15 Minutes reading and you will be able to develop it 

  1. DQL 
  2. DQL Commands 
  3. How to use DQL queries 

KR, 

Peter

Featured Posts