I am attempting to use a regular expression with Scanner to match a string from a file. The regex works with all of the contents of the file except for this ...
I'm having a very difficult time trying to get this regular expression in java to work. I just don't understand why it is not working. It appears to work in a perl script.The idea is to check if this target is landing in html and is breaking out of a double quote in an html tag. example: injecting this in a ...
First, while regex can probably do this (within certain limitations), I don't think it's a great tool for the job. As for what's happening, as a rough guess, you've got lots of potential matches and the regex has to do lots of backtracking, and that's killing your stack. Also... x y z