java - Extracting Strings within messages which contains concatanation characters -
I am trying to extract messages from the following types of stars,
Error_Message ('The values entered by you are 1,2 and 3 invalid.'); Using the following regular expressions,
\ s * (\ w +): \ s * (?: '\ S * (?: \ | \ S *) '\ s * | [^']) + '
But the problem is that it fails in certain scenarios, such as
Medium ('Sample Message Price: P You Have' '|| CHAR (10) ||' entered is invalid. ', Function (' Expose ', Ultimate 2)); Normal Medium ('Percent can not be negative.', Functions ('Expose', parameter2)); "itemprop =" text ">
Will this always be the message before the open bracket? If so:
(? & Lt; = message) (\ ')' [^.] + if not:
^ . * ('[^'] + ') and look at the first capture group.
Edit: For the entire message: p>
^. * ('[^.] *.') For an example, see.
Comments
Post a Comment