Forum Discussion
omatzura
17 years agoSuper Contributor
Hi Jozef
thanks for your post! By defaul, the "." sign does not match line-breaks, so unless your response is just one long line, the ".*" wont work. You should prefix the expression with "(?s)", which tells the regex processor to include line-breaks (see http://www.jdocs.com/javase/7.b12/java/ ... ttern.html for more info on this).. so if you enter
(?s).*
you should get a match for anything..
hope this helps!
regards,
/Ole
eviware.com
thanks for your post! By defaul, the "." sign does not match line-breaks, so unless your response is just one long line, the ".*" wont work. You should prefix the expression with "(?s)", which tells the regex processor to include line-breaks (see http://www.jdocs.com/javase/7.b12/java/ ... ttern.html for more info on this).. so if you enter
(?s).*
you should get a match for anything..
hope this helps!
regards,
/Ole
eviware.com
Related Content
- 7 years ago
Recent Discussions
- 7 hours ago
- 17 days ago