关于正则表达式的帮助 [英] Help on regex

查看:81
本文介绍了关于正则表达式的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有用户注册表我希望列出所有用户按日期范围注册。因为我使用grep过滤记录但正则表达式不起作用我知道我构建了错误的正则表达式,请问有人建议我怎么做。




Hi to all,

I have user registry I want list out all user register by date range.For that i am using grep to filter the records but the regex is not working.I know i build wrong regex could u please anybody suggest me how do i do that.





展开 < span class =codeDivider> | 选择 | Wrap | Line数字

推荐答案


大家好,


我有用户注册表我想列出所有用户注册的日期范围。为此我使用grep过滤th e记录,但正则表达式不起作用。我知道我构建错误的正则表达式,请你有人建议我怎么做。




>
Hi to all,

I have user registry I want list out all user register by date range.For that i am using grep to filter the records but the regex is not working.I know i build wrong regex could u please anybody suggest me how do i do that.





展开 | 选择 | Wrap | 行号



亲爱的拉吉夫,


根据我的理解,这就是你想要的:


你有一个注册表文件,其数据是根据用户名和访问日期存储的。您希望从文件中获取与您给出的reg-ex匹配的数据。


您是否想要获取数据以及日期,或者您是否使用用户名本身搜索数据?


请更正我我错了。
Dear Rajiv,

As per my understanding, here is what you want:

You have a registry file whose data was stored based on the username and the acess dates. You want to get the data from the file which matches with the reg-ex given by you.

Did you want to get the data along with the date or were you searching the data with the username itself?

Please correct me if I am wrong.



谢谢rellaboyina


让我解释清楚,实际上我使用用户名和日期范围进行搜索。假设用户名''rajiv101''和日期范围''2008-12-01''到''2008-12-05''那么它应该列出所有具有这种条件的记录。


但是我的正则表达式是完全错误的。现在我正在研究那部分,但是如果你有任何想法请告诉我。


谢谢

Rajiv

Thanks rellaboyina

Let me Explain clearly , Actually i am search using both username and date range.Suppose the user name ''rajiv101'' and the date range ''2008-12-01'' to ''2008-12-05'' then it should list all records with this condition.

But my Regex is totally wrong.Now i am working on that part but if u have any idea please let me know.

Thank You
Rajiv


我发现很难解决这个问题。如果有人有任何其他解决方案请告诉我。


感谢你。

Rajiv
I am finding hard to solve this problem.If anybody have any other solution please let me know.

Thank U.
Rajiv


这篇关于关于正则表达式的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆