Jump to content


Regular expressions find an replace


3 replies to this topic

#1 sidi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 27 February 2017 - 07:48 AM

Hi,
for the life of me I cannot replace text with modified matched pattern.
I'm trying to replace:
(\d+)
with:
AA $1

Tried to use $1, ($1), [0], $[0], item[0], Item[0] as suggested in regular expressions (Pattern) tool tip.

#2 Hellen_V

    nanoCAD Team

  • Members
  • PipPipPip
  • 916 posts

Posted 27 February 2017 - 01:02 PM

Hi,
explain your problem in detail, please.
nanoCAD Support Team
support@nanocad.com

#3 SevaM

    Admin

  • Administrators
  • 231 posts

Posted 27 February 2017 - 03:05 PM

Hi Sidi,

doesn't work for me too, it seems that "Replace with" doesn't process pattern-related obptions.
And in your case it will not works ( imho) at all - I didn't found anything how to recall not exactly definet string ( for eample 1 ), but current.

Will ask developer who wrote this dialog. In our local version this feature is marked "Not ready yet" - so, probably it will be finished in next version.

Best regards,
Seva.

#4 sidi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 27 February 2017 - 03:13 PM

View PostSevaM, on 27 February 2017 - 03:05 PM, said:

Hi Sidi,

doesn't work for me too, it seems that "Replace with" doesn't process pattern-related obptions.
And in your case it will not works ( imho) at all - I didn't found anything how to recall not exactly definet string ( for eample 1 ), but current.

Will ask developer who wrote this dialog. In our local version this feature is marked "Not ready yet" - so, probably it will be finished in next version.

Best regards,
Seva.

Thanks Seva. Not sure why you would put a tool tip for function that wasn't implemented, I'm using nanoCAD 5.

@Hellen V I'm trying to use "Find and replace" (ctrl+F) to edit selected MText objects with regex





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users