-3

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

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

Tom tom
  • 322
  • 2
  • 16

1 Answers1

1

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

Dušan
  • 195
  • 9