regex - How can I split a string delimited with multiple characters? -
this question has answer here:
i'm trying split string that's delimited "space-quote-space" ( ' ) between values.
the regex run in oracle pl/sql select statement, but believe it's pretty regex allows
the strings this:
fina 233ff ' bla 33333333 ' fred ' o'gladson ' 99 left rd ' flinders mi ' 9999 ' 0499999999 ' here notes $9999.00 old thing sd2232dd (left) pls see john
while can split string based on single quote easy enough -
[^']+
...it hits quote in middle of surname (o'gladson). make easier can add in single quote on start or end. can trim results afterward, if can split right. what's correct regex?
i think need :
([:space:]''[:space:]) //single quote need escaped
Comments
Post a Comment