获取mongodb中的URL路径

时间:2014-07-08 11:12:02

标签: javascript string mongodb url nosql

我想获取URL的路径,该路径存储为mongodb集合中的字符串。 例如:

For the url: "www.abc.com/hello.php?id=4#hello",
the path will be: "/hello.php"

有没有办法在mongodb中这样做?我需要在地图操作中解析URL(具有相同路径)的路径。

0 个答案:

没有答案