subfile options... including special characters...

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

subfile options... including special characters...

Post by Dino » 22 Dec 2022, 10:07

Hi

In aXes 4.2.1, I am trying to expand the subfile options rules in autogui to support more than numbers, but regex is not exactly my forte.

Any ideas how to be able to modify the expression to support characters like @ and % as subfile options? My example only show a few options, but the final requirement have a lot of them, exceeding numbers and letters....
subfileoptions01.jpg
subfileoptions01.jpg (83.1 KiB) Viewed 12323 times
you can see here the presentation in aXes and the rule I am trying to change:
subfileoptions02.jpg
subfileoptions02.jpg (217.5 KiB) Viewed 12323 times
Currently my rule is like this, using (\d+|\%|\@) to indicate digit(s) or % or @:

Code: Select all

(\d+|\%|\@)( *(?:=))(.*?)(?=(?:\b(?:\d+|[a-z]|\%|\@) *(?:=)| \.\.\.$|$))( \.\.\.)?
the partial expression regex (\%|\d+|\@)(=) test fine in https://regexr.com/ but seems that I am missing something...

tim mcentee
Posts: 37
Joined: 26 Jul 2017, 13:20

Re: subfile options... including special characters...

Post by tim mcentee » 09 Jan 2024, 12:42

Hi Dino
The following character have special meaning, and should be preceded by a \ (backslash) to represent a literal character:
+*?^$\.[]{}()|/

Within a character set, only \, -, and ] need to be escaped.

So try
(\d+|%|@)

I would start with
(.)
then
(\d+|.)
then
(%)
then
(@)

etc

Tim

Post Reply