Regular Expressions 101

Library entries

java截取出单项式

Vote

1

Regular Expression
javascript

/
[ ]*([+-]?[ ]*(([1-9][0-9]*)[ ]*(\\*[ ]*x[ ]*(\\^[ ]*([-+]?[1-9][0-9]*))?)?)|([ ]*[-+]?[ ]*x[ ]*(\\^[ ]*([-+]?[1-9][0-9]*))?)[ ]*)
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago