Skip to main content
Solved

i have a sevaral text.i need to identify the TBMK12,TBMK13...etc.anyone help.i tried with string searcher but not identify.how to express the value on string searcher

  • September 19, 2019
  • 6 replies
  • 19 views

thirug
Forum|alt.badge.img

string searcher

Best answer by redgeographics

A regex of TBMK[0-9][0-9] should do the trick, assuming it's always TBMK followed by 2 numbers.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • Best Answer
  • September 19, 2019

A regex of TBMK[0-9][0-9] should do the trick, assuming it's always TBMK followed by 2 numbers.


thirug
Forum|alt.badge.img
  • Author
  • 16 replies
  • September 19, 2019

A regex of TBMK[0-9][0-9] should do the trick, assuming it's always TBMK followed by 2 numbers.

14-9-19.dwg

can u check and sent a string searcher transformer expression


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • September 19, 2019

14-9-19.dwg

can u check and sent a string searcher transformer expression

If you want to find all the points with TBMK followed by 2 numbers in the autocad_text_string attribute that regex will work. You do need to expose autocad_text_string first of course.


thirug
Forum|alt.badge.img
  • Author
  • 16 replies
  • September 19, 2019

A regex of TBMK[0-9][0-9] should do the trick, assuming it's always TBMK followed by 2 numbers.

thanks but didn't understand the expression.can u please explain.i never used for this expressions

.


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3701 replies
  • September 19, 2019

A regex of TBMK[0-9][0-9] should do the trick, assuming it's always TBMK followed by 2 numbers.

In a Stringsearcher just enter TBMK[0-9][0-9] as the regular expression.

 

If you go into the Regular expression editor you can get a preview of what it's doing:

So right now it finds all points where in the autocad_text_string attribute the text TBMK followed by 2 numbers occurs (so not TBMK1 because that's only one number). Depending on your source data you may want to add a $ after the end of the regular expression to prevent it from matching on TBMK followed by 3 or more numbers as well.


thirug
Forum|alt.badge.img
  • Author
  • 16 replies
  • September 20, 2019

In a Stringsearcher just enter TBMK[0-9][0-9] as the regular expression.

 

If you go into the Regular expression editor you can get a preview of what it's doing:

So right now it finds all points where in the autocad_text_string attribute the text TBMK followed by 2 numbers occurs (so not TBMK1 because that's only one number). Depending on your source data you may want to add a $ after the end of the regular expression to prevent it from matching on TBMK followed by 3 or more numbers as well.

thank u very much