Jump to content

how to recognize and sort sub-strings in a string?


zoofreek

Recommended Posts

Hello

I have an irregular character string that can contain the following 8 contents = Name : x1-y1 Telef : x2-y2 P.O. Box : x3-y3 City : x4-y4

xn = all characters except carriage return
yn = all characters after line feed

I'm looking for a method to generate the following 8 sub-strings = Name
1 = Name: x1
2 = y1 (maybe empty)
3 = Telef : x2
4 = y2 (maybe empty)
5 = C.P. : x3
6 = y3  (maybe empty)
7 = City: x4
8 = y4 (maybe empty)

If possible, the same contents always in the same position/column (i.e. recognize and order the right sub-contents when they exist, in the appropriate column/position = y4 should always be in position/column 8).

We can use fivxrr or upwxrk for this.

THANK YOU

Edited by zoofreek
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.