I want to extract data from string where first delimiter is fixed but second delimiter is bit changing.
" There are some numbers 234 xys XB1- given string i want ph no- 9766 also check to find next hypen 12A- khhhdhd snsjsjsk djdjdjdj-"
Output i want:
“given string i want ph no- 9766 also check to find next”
I.e. between XB1- and 12A-
But problem is XB1 is fixed but 12A- is changing
It can be 13A- or 17A- or 12B- or any other.
2A is not fixed.
I am using
Which is giving only output as:
“given string i want ph no”
Due to extra - between string.
Can we have any expression for this issue.