There is a text of the form:

id: 12346, title: 'Ivanov', description: 'Смешанное содержимое', size: 666, 

How to extract values ​​from here, that is, to get:

 12346 Ivanov Смешанное содержимое 666 

Better for each line separately.

    2 answers 2

    I think it will be more universal:

     (?<=\w+: ).+(?=,) 

    I will explain a little. An expression in parentheses means a positive look ahead. This is defined by a sequence of characters (? <=). That is, we check that before the search expression there is a certain sequence of letters (one or more) \ w + and a colon with a space ":" Then the expression ". +" Itself is any number of characters except \ n. The limit is a comma (? =,). Similar to a positive backward search - a positive forward search.

      something like that

       (\bid:\ )(\d+) (\btitle:\ ')(\S+)', (\bdescription:\ ')(.+)', (\bsize:\ )(\d+) 

      example