Regular expression question

H

Harry Ohlsen

I'm sure this is trivial, but I don't have my Mastering Regular Expressions handy (and I haven't put sufficient effort into getting through it!).

I have a string that looks something like ...

(ie, it's the set of quoted strings between the markers). What I'd like to do is split the string up into an array containing the three quoted items (with or without the quote marks).

At some point, I'd probably also like to use something like \" to represent a quote within a string.

I'm sorry to say that I'm actually having to do this in Java (it's a work thing), so I'll have to do some mangling of whatever the "correct" regex is, but that's OK ... well, it's not, but I'll have to live with it :).

Cheers,

H.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,109
Messages
2,570,671
Members
47,261
Latest member
Hendra45

Latest Threads

Top