java regex Notes

Recently wrote reptiles, so I encountered a problem almost close to collapse.

Before it has been configured in the profile web address, regular expressions and so on.

But now these parameters until the database has been a problem does not always match the regular:

For example:. \\ S * (htm | html) \\ S * (This database is read out of regular) and \ S * (html | htm) \ S * (this is the configuration file acquired. regular)

Obviously it. \ Bar of the problem, but in the configuration file is represented by the \\ ah.

<span style="font-size:14px;">urlRule=/\\S*.(html|htm)\\S*</span>
Or double slash I wonder that strange, after the configuration file assigned to the variable double slash slash into a single database in a double slash assigned to the variable.

I always thought it was a problem to start the thread behind the repeated testing, found to be out of the database data can not match, the profile can be.

Did not get to know how this is going, anyway, the ultimate question is to double slash database into single slash it.

Look great God who gets how this is going.

doubtdoubtdoubt

Published 90 original articles · won praise 21 · views 470 000 +

Guess you like

Origin blog.csdn.net/yx13649017813/article/details/47154889