Over 1.099.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
Discussion forum
?CAD discussions, advices, exchange of experience

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply ![]() |
Author | |
Vladimir Michl ![]() Moderator Group ![]() Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2124 |
![]() Posted: 19.Nov.2008 at 22:12 |
It is not any special feature of srxText but a standard Posix format of regular expressions.
See e.g.:
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
msa81 ![]() Newbie ![]() Joined: 18.Nov.2008 Location: Canada Status: Offline Points: 3 |
![]() |
I noticed you used the "+" character. Where can I find a list of expressions that SRXTEXT supports?
|
|
![]() |
|
msa81 ![]() Newbie ![]() Joined: 18.Nov.2008 Location: Canada Status: Offline Points: 3 |
![]() |
I guess I should have realized that! Thanks very much for the quick response.
|
|
![]() |
|
Vladimir Michl ![]() Moderator Group ![]() Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2124 |
![]() |
Please note that LISP has its own processing of the backslash character so you have to double it again. The right regexp for this case is:
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
msa81 ![]() Newbie ![]() Joined: 18.Nov.2008 Location: Canada Status: Offline Points: 3 |
![]() |
Hi,
I am trying to use SRXTEXT to remove control characters from MTEXT. The colour control characters are something like this: {\\C255; or {\\C2; or just \\C2;
I have successfully use the regexp from the command line however I would like to construct a lisp routine but the program seems to function differently. For example.
entering the commands:
srxtext
r
\(.\){\\C[0-9];\(.\)
\1\2
L
A
will replace "texttext{\\C2;text}text" with "texttexttext}text"
this works correctly but if I try to do this:
(srxtext "Regular" "\(.\){\\C[0-9];\(.\)" "\1\2" "All")
it will return 0. I have managed to get the following to work
(srxtext "Regular" "\{\\\\C[0-9];" "###" "All")
which will replace {\\C2; with "###" but
(srxtext "Regular" "\(.\)\{\\\\C[0-9];\(.\)" "\1\2" "All")
will also return 0.
why does this not work? Could someone please point me in the right direction? thanks very much! |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,156 seconds.