could you help me with the regex for the following examples:
lorem ipsum size large lorem ipsum
or
lorem ipsum size m lorem ipsum
or
lorem ipsum size 39.5 lorem ipsum
so in short I am trying to extract one word/string after the word/delimter size until the following white space. so in the above examples it would be (in order): large, m, 39.5.
Any ideas?
Quick update:
could you please include also a possibility of
size:$(size)
or
size: $(size)
or
size $(size)
Output:
Size is stored in
$matches[1].