regular expression

Posted by Jeeenda on Stack Overflow See other posts from Stack Overflow or by Jeeenda
Published on 2010-03-20T17:21:00Z Indexed on 2010/03/20 17:31 UTC
Read the original article Hit count: 384

Filed under:
|
|

Hi I need a regular expression that'll give me something like this part

./something\", [something.sh

from something like this string

("./something\", [something.sh", ["./something\", [something.sh"], [/* 37 vars */])

is that possible? I'm having real trouble making this since there's that \" escape sequence and also that ',' character, so I cannot simply use match everything instead of these characters. I'm working on unix so it's also possible to use pipeline of few greps or something like that. Thanks for advice.

© Stack Overflow or respective owner

Related posts about regex

Related posts about regular-expression