I can't seem to use a regular expression with back references in a rule
with token-split (IDM 3.6.1)


Code:
--------------------

<do-set-local-variable name="postal-nodes" scope="policy">
<arg-node-set>
<token-split delimiter="(\d{4})(\w{2})">
<token-local-variable name="postal"/>
</token-split>
</arg-node-set>
</do-set-local-variable>

--------------------



The level 3 trace:


Code:
--------------------

[02/05/10 20:43:55.321]:PS CS Student PT: Action: do-set-local-variable("postal-nodes",scope="policy",arg-node-set(token-split("(\d{4})(\w{2})",token-local-variable("postal")))).
[02/05/10 20:43:55.322]:PS CS Student PT: arg-node-set(token-split("(\d{4})(\w{2})",token-local-variable("postal")))
[02/05/10 20:43:55.322]:PS CS Student PT: token-split("(\d{4})(\w{2})",token-local-variable("postal"))
[02/05/10 20:43:55.322]:PS CS Student PT: token-split("(\d{4})(\w{2})",token-local-variable("postal"))
[02/05/10 20:43:55.323]:PS CS Student PT: token-local-variable("postal")
[02/05/10 20:43:55.323]:PS CS Student PT: Token Value: "2312RC".
[02/05/10 20:43:55.323]:PS CS Student PT: Arg Value: "2312RC".
[02/05/10 20:43:55.323]:PS CS Student PT: Token Value: {"",""}.
[02/05/10 20:43:55.323]:PS CS Student PT: Arg Value: {"",""}.

--------------------



As you can see, I get an empty nodeset. Am I missing something (a.k.a
meatware error)? There isn't any particular good documentation on the
delimiter functionality of token-split. The documentation only states
that regular expressions and variable substitution are supported.

Anybody got a clue? Good alternatives are also welcome ;-)


--
sveldhuisen
------------------------------------------------------------------------
sveldhuisen's Profile: http://forums.novell.com/member.php?userid=18142
View this thread: http://forums.novell.com/showthread.php?t=400756