I created one for "x" as multiplication sign, as replace ([0-9]) X ([0-9]) with \1 x \2 , and it works well with "custom case" defaulting to "proper case", but only if I disable "use case". For example it results 21 x 435 without use case, but 21 X 435 with use case.
Would it possible to add a new setting to the replacement matrix item, to eliminate the "use case" conversion on the result.
Another solution could be some extension of the "Exceptions", allowing not only literals before ";" .
I think replacement matrix and "Exceptions" are similar, the latter is simpler but don't use case rules.
regex in replacement matrix
Re: regex in replacement matrix
Case conversion comes after matrix execution.
I'm thinking about adding an extra option per matrix, to execute it before or after case.
I'm thinking about adding an extra option per matrix, to execute it before or after case.
-
- Sr. Member
- Posts: 294
- Joined: Wed Sep 15, 2010 1:38 pm
Re: regex in replacement matrix
Yes, that's the problem in this case.jtclipper wrote:Case conversion comes after matrix execution.
It would be great, thanks in advance.jtclipper wrote:I'm thinking about adding an extra option per matrix, to execute it before or after case.
Re: regex in replacement matrix
Updated the beta.
-
- Sr. Member
- Posts: 294
- Joined: Wed Sep 15, 2010 1:38 pm
Re: regex in replacement matrix
Works fine !
However, when I try to add a second rule, I get " Invalid cell' at 1st, later "list index" errors, and can't save the rule. Edit:
In effect,I am unable to add any new rule:
However, when I try to add a second rule, I get " Invalid cell' at 1st, later "list index" errors, and can't save the rule. Edit:
In effect,I am unable to add any new rule:
Re: regex in replacement matrix
Thanks, fixed that
(There are some unfinished proper case changes in there)
(There are some unfinished proper case changes in there)
-
- Sr. Member
- Posts: 294
- Joined: Wed Sep 15, 2010 1:38 pm
Re: regex in replacement matrix
Works fine with the new beta, thanks !
Re: regex in replacement matrix
Did another update yet, proper case option (comment field separators) should work ok.
-
- Sr. Member
- Posts: 294
- Joined: Wed Sep 15, 2010 1:38 pm
Re: regex in replacement matrix
Sorry, I write the comments myself, and use "as is" with custom case for comments, so I don't know, what was the problem.jtclipper wrote:Did another update yet, proper case option (comment field separators) should work ok.