2

maybe you can help

I have a string:

"width"=>"6","name:be"=>"Калінавы завулак","name:ru"=>"Калиновый переулок","surface"=>"asphalt","int_name"=>"Kalinavy zavulak","maxspeed"=>"40"

necessary as a distinct attribute : Kalinavy zavulak

my test:

Split( [Your_Field_Name] , "int_name"=>",)(1)

enter image description here

But something goes wrong

1
  • 2
    What goes wrong? – John Powell Apr 7 '16 at 11:36
2

The argument of the split function is expecting a string value surrounded by "" or ''. You have three double quotes. Try surrounding the string with single quotes:

!other_tags!.split('"int_name"=>"')[1]

To remove the last bit of text, run this statement after running the one noted above:

!other_tags!.split(',')[0].replace('"','')
4
  • Thank you for just one more problem, Kalinavy zavulak","maxspeed"=>"40" ","maxspeed"=>"40" - not needet – ru-ubuntu Apr 7 '16 at 11:51
  • @ru-ubuntu, what is your question? – artwork21 Apr 7 '16 at 11:54
  • Now everything apart from "int_name "=>" and I need just to name - Kalinavy zavulak – ru-ubuntu Apr 7 '16 at 12:09
  • @ru-ubuntu, updated my answer – artwork21 Apr 7 '16 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.