Sunday, 15 September 2013

Regex ubdesireably removing substring

Regex ubdesireably removing substring

I'm trying to extract void <init>(java.lang.String) and java.io.File
getOutputMediaFileUri(int) from the string below (and strings like it).
specialinvoke $r1.<java.io.File: void
<init>(java.lang.String)>($r16)@<com.jpgextractor.PicViewerActivity:
java.io.File getOutputMediaFileUri(int)>
Currently, I'm matching to the regex:
/.*<.* (\S+ .*)>.*<.* (\S+ .*)>.*/
Which works, except for instead of void <init>(java.lang.String) I just
get void (java.lang.String).
I'm a bit mistified where <init> has gone off too...I've tried several
different ways to coax it back, but so far no luck.
Thanks folks!

No comments:

Post a Comment