Trechriron10 Posted October 30, 2019 Report Share Posted October 30, 2019 I'm having the hardest time making these work. Can someone help me with the structure? I'm trying to regex out the second part of the total as a number. Then I will <math> it to determine point cost. <!--REG_REPLACE--> <!--DEFSTRING--><!--ED--><!--ED_NONRESISTANT_TOTAL--><!--/ED--><!--/DEFSTRING--> <!--REGSTRING-->([0-9]{1,2})\/([0-9]{1,2})<!--/REGSTRING--> <!--REPSTRING-->\2<!--/REPSTRING--> <!--/REG_REPLACE--> Quote Link to comment Share on other sites More sharing options...
Simon Posted October 30, 2019 Report Share Posted October 30, 2019 REG_REPLACE doesn't work like that. There is no DEFSTRING component -- it acts on the document as a whole. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.