Could someone please help me correct the regex to avoid including the content of group 1 (.*?) in the matched value?
plainly speaking, I would love for my matches not to include either a '-' or a whitespace.
Thanks!
my regexp:
(?<=temp)(.*?)\d+\.?\d*
example string:
temp 50 ec 20 hum 100 20 temp - 50.50 temp 50.25'
I suggest asking in the Linux Group, and saying explicitly what you want to match from that input
https://t.me/joinchat/FNPR30JIlcnuoY7679K5Yg
Linux group
Обсуждают сегодня