Request for help in consolidating existing regular expressions
Hi,
Could you help us with this?
We've been using the following set of regular expressions for most of the MS documents. We added these expressions one by one with the help of WB support personnel in the past, but I've noticed that this is quite inefficient and some expressions are duplicated.
Basically, we want to hide segments that contain: 1) symbols only; 2) numbers only (including Japanese numbers such as ①, ② and double-byte numbers such as 1, 2, or numbers with bracket such as (1), [1]. etc.)
With this expression (item #3),
^[^\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Pc}]*$
can we safely remove items #2, 3, 4, 5, 6?
If not, could we combine some of them?
I vaguely remember that we added #4 and #7 since we had problems with previous regular expressions but I do not remember if that was before adding item #3 or not.

I would greatly appreciate it if a Wordbee expert could confirm these items so we could prevent the occurrence of any potential problems with our server.
Regards,
Sachiyo
-
Sorry,
I meant "With this expression (item #3),
^[^\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Pc}]*$
can we safely remove items #2, 4, 5, 6?"Sachiyo
0 -
Hello Sachiyo,
you cannot safely remove items #2, 4, 5, 6 with the regex you have mentioned.
I am working with regular expressions for quite some time as CAT tools expert and I know that regular expressions are very tricky and sometimes a slight change can cause not desired behaviour. So I recommend to stick to what you already have and do not worry about the fact that some of regular expressions you already have can be duplicated.
All the best
Wojciech
0 -
Thanks for the advice.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare