I'm sure this has been asked before (actually, I think I've SEEN it here before), but my keyword searching appears to be a bit off today.
I'm looking for a regular expression that will match data between certain characters (a pair of # and a pair of %, to be exact). I have this file being fed to me, and there's a lot of junk in there that I don't need to deal with. Randomly throughout this document, there is %something% and #something_else#, and that's what I'm interested in.
I'm not too good with regular expressions, but what I was hoping to do was parse through the feed (twice, if necessary) and end up with an array of % matches, and an array of # matches (there may be multiple matches of each in this file).
I'm off to look get help elsewhere on the web, but if anyone is quicker at typing than I am at reading, the help would be greatly appreciated.
Thanks!
I'm looking for a regular expression that will match data between certain characters (a pair of # and a pair of %, to be exact). I have this file being fed to me, and there's a lot of junk in there that I don't need to deal with. Randomly throughout this document, there is %something% and #something_else#, and that's what I'm interested in.
I'm not too good with regular expressions, but what I was hoping to do was parse through the feed (twice, if necessary) and end up with an array of % matches, and an array of # matches (there may be multiple matches of each in this file).
I'm off to look get help elsewhere on the web, but if anyone is quicker at typing than I am at reading, the help would be greatly appreciated.
Thanks!