-3

I do have the following string: AAAAAAA | BBBBBBBB | CCCCCCCC | DDDDDDDD

Only the AAAAAA part should be visible. Is that possible?

Tom tom
  • 329
  • 3
  • 19

1 Answers1

1

You can use split method like this: inputString.split('|')[0]

Dušan
  • 269
  • 1
  • 11