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
  • 5 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.

View original

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 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
  • September 19, 2019
redgeographics wrote:

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+47
thirug wrote:

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
  • September 19, 2019
redgeographics wrote:

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+47
redgeographics wrote:

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
  • September 20, 2019
redgeographics wrote:

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings