Skip to main content
Question

Need help to find Text from long sentence


I have an Excel Sheet where I need to find Arabic Words and separate them.

For example, I have data like this:

//olyservice/GIS-TANSIQ01/Storage/46-????? ????? ???? -????? ??????/???? ????? ??????? ??????????????? ???????? ????????.rar

//olyservice/GIS-TANSIQ01/Storage/111-????? ?????? ??????? -/Layers.zip

 //olyservice/GIS-TANSIQ01/Storage/100-????? ????? ???? -/????? ????? ???????? ??????? ?????????? ???? ????? ???? - ????????.rar


I'm looking for:

  • 1st column: ????? ????? ????
  • 2nd column: ????? ??????
  • 3rd column: RAR

If there is no ????? and ????? words, the columns should be blank.

Is there any transformtion and formula which i can to get the information ??

6 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • November 7, 2019

Hi @skorpionaa

Could you share your source xls?

 

Thanks,

Danilo


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • November 7, 2019

I suggest you to use the transformer StringSearcher for find Text.


  • Author
  • November 7, 2019

  • Author
  • November 7, 2019

I cant figure out Please help me out ion this


jovitaatsafe
Safer
Forum|alt.badge.img+11

Hi @skorpionaa,

Have you tried using an AttributeSplitter or SubstringExtractor? Along with Danilo's suggestion on the StringSearcher, these are good string manipulating transformerts to start with.

For example, grabbing the .rar or ,zip, you could use the AttributeSplitter to split on the '.' as a delimiter. Please give these transformers a try and let us know how it goes for you. If you get stuck, please feel free to share your workspace so far and we can try to get you back on track (:


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • November 12, 2019

I'm not 100% clear on the requirements, but if you want to pick out the strings of Arabic words that are separated by hyphens (-) or forward slash (/) you could use regex in a string searcher

([\p{Arabic}\s]+)

This would return a list which you could then rename to attributes as necessary


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