J
John R
I'm puzzled on how to make the following regex work:
String(1):
dsr:"Some text"; height:67; width:10; client:"seven"
String(2):
dsr:"Some;text"; height:67; width:10; client:"seven"
RegEx applied:
(\w+):?([^;]+)?;\s?
String(1) parsed great, resulting in two arrays:
dsr "Some text"
height 67
width 10
client "seven"
However, string(2) will not parse correctly because it has an extra
";" between the quotes:
Can regex ignore ; if they are between quotes?
String(1):
dsr:"Some text"; height:67; width:10; client:"seven"
String(2):
dsr:"Some;text"; height:67; width:10; client:"seven"
RegEx applied:
(\w+):?([^;]+)?;\s?
String(1) parsed great, resulting in two arrays:
dsr "Some text"
height 67
width 10
client "seven"
However, string(2) will not parse correctly because it has an extra
";" between the quotes:
Can regex ignore ; if they are between quotes?