regex - Java Pattern.quote -


i pretty new patterns , great.

i building webcrawler, looks specific pattern in path.

right using pattern.quote produce literal string.

let's pattern.quote produces \q/test/live/167909\e in after second slash (thus live) same. because test , 167909 random created pattern \q/*/live/*\e , can't use create new pattern.

any welcome.

the expression ".*/live/.*" matches paths pattern describe. can create pattern that.

alternatively, peter said, ask path.contains("/live/");


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -