Post Reply 
$TSTing positional vars
Oct. 21, 2010, 03:13 PM (This post was last modified: Oct. 21, 2010 03:16 PM by sidki3003.)
Post: #6
RE: $TSTing positional vars
(Oct. 21, 2010 02:19 AM)JJoe Wrote:  The left side of "(|\0)" matches 'nothing' and keeps \0 empty.

Is there a better workaround?

It depends on the actual situation. Normally you can rearrange your matching expression, so that the positional variable always has something to capture. Which is what i prefer. As a rule of thumb, matching is quicker than failing.

If rearranging isn't possible, your workaround looks fine. Smile!


Quote:Of interest, the test window results aren't always the same as the real world.

The last (third) replace line in the page code example is still there, but further down the page.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
$TSTing positional vars - whenever - Feb. 04, 2009, 11:10 AM
RE: $TSTing positional vars - sidki3003 - Feb. 04, 2009, 02:18 PM
RE: $TSTing positional vars - whenever - Feb. 05, 2009, 05:06 AM
RE: $TSTing positional vars - sidki3003 - Feb. 05, 2009, 01:43 PM
RE: $TSTing positional vars - JJoe - Oct. 21, 2010, 02:19 AM
RE: $TSTing positional vars - sidki3003 - Oct. 21, 2010 03:13 PM
RE: $TSTing positional vars - JJoe - Oct. 21, 2010, 06:03 PM
RE: $TSTing positional vars - sidki3003 - Oct. 21, 2010, 06:45 PM
RE: $TSTing positional vars - JJoe - Oct. 21, 2010, 09:29 PM
RE: $TSTing positional vars - sidki3003 - Oct. 22, 2010, 10:12 PM
RE: $TSTing positional vars - JJoe - Oct. 22, 2010, 11:40 PM
RE: $TSTing positional vars - whenever - Oct. 10, 2011, 03:51 AM

Forum Jump: