Call for tests - BSD

Users browsing this thread: 1 Guest(s)
venam
Administrators
I'm running Linux but I can say that the regex looks right.
The first set of parenthesis only match one char, shouldn't it be like that, with the kleene start inside the parenthesis:
Code:
echo "<action=xclock>$(date)</action>" | grep -v "<action=([^>]*)>(.+ ?)</action>"
Also, can't you match the second back-reference with square-brackets?
Code:
echo "<action=xclock>$(date)</action>" | grep -v "<action=([^>]*)>([.+]?)</action>"


Messages In This Thread
Call for tests - by dcoppa - 11-07-2013, 03:19 PM
RE: Call for tests - by venam - 11-07-2013, 04:02 PM
RE: Call for tests - by yrmt - 11-07-2013, 04:08 PM
RE: Call for tests - by dcoppa - 11-07-2013, 04:19 PM
RE: Call for tests - by zygotb - 11-07-2013, 04:21 PM
RE: Call for tests - by dcoppa - 11-07-2013, 04:33 PM
RE: Call for tests - by yrmt - 11-07-2013, 04:53 PM
RE: Call for tests - by dcoppa - 11-07-2013, 05:58 PM
RE: Call for tests - by berk - 11-07-2013, 06:01 PM
RE: Call for tests - by yrmt - 11-07-2013, 06:37 PM
RE: Call for tests - by dcoppa - 11-07-2013, 07:00 PM
RE: Call for tests - by dcoppa - 12-07-2013, 11:02 AM