开发者

Pros and Cons of using regex in Java [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibl开发者_Python百科y reopened, visit the help center for guidance. Closed 11 years ago.

Can someone list comprehensive list the pros and cons of using regular expressions in Java programing?


Pro: when regular expressions do what you need.

Con: when they don't.

Other than that, the question as stated is mostly ideological.


Pros: They are an effective way to match against input. They are easily configurable and can be separated from code.

Cons: They be hard to read. They are not performant. If performance is a concern do not use them.


Pro: It works and it's simple.

Con: There are none.

Why ask? Perhaps you have something more specific you'd like to know?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜