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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -