Java RegExp ViewState

Posted by CDSO1 on Stack Overflow See other posts from Stack Overflow or by CDSO1
Published on 2010-04-23T14:29:13Z Indexed on 2010/04/23 14:33 UTC
Read the original article Hit count: 365

Filed under:
|
|
|
|

I am porting some functionality from a C++ application to java. This involves reading non-modifiable data files that contain regular expressions.

A lot of the data files contain regular expressions that look similar to the following:

(?<=id="VIEWSTATE".*?value=").*?(?=")

These regular expressions produce the following error:

"Look-behind group does not have an obvious maximum length near index XX"

In C++ the engine being used supported these expressions. Is there another form of regexp that can produce the same result that can be generated using expressions like my example as input?

© Stack Overflow or respective owner

Related posts about regex

Related posts about java