How to use a repetition pattern with Arbortext Command Language
Hello,
With ACL and search functions (gsub, sub or others), how to match a repetition pattern using the characters { } ?
Exemple of a repetition pattern: [0-9]{4}.
Regards
David
Hello,
With ACL and search functions (gsub, sub or others), how to match a repetition pattern using the characters { } ?
Exemple of a repetition pattern: [0-9]{4}.
Regards
David
ACL's regular expressions don't support explicit quantifiers (e.g. {4}). They only support *, ?, and +.
However, you can probably use Javascript and use it's much better regular expression handling to do what you need to do. Write a function in Javascript to do what you need, put it in a *.js file, make sure you load (source) it when Arbortext starts, and then you can call it using the ACL javascript() function.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.