t******7 发帖数: 396 | 1 REGEX
1.Use one REGEX to match the last line of any US address
Must be able to match all 4 examples below
Must be able to match with or without the comma.
Ex: Stamford, CT 06901
Stamford, Connecticut 06901
Stamford, CT 06901-2064
Stamford, Connecticut 06901-2064
2.For each date example below, use a REGEX to match the format:
Tue, 10 Dec 2012 19:45:45
2012年12月10日 | r**********g 发帖数: 22734 | 2 ^(\w+\s*)+\,?\s*\w\w+\s+\d\d\d\d\d(-\d\d\d\d)? : \d{5} may not be
supported by all regex libs
第二个自己看着写吧
【在 t******7 的大作中提到】![](/moin_static193/solenoid/img/up.png) : REGEX : 1.Use one REGEX to match the last line of any US address : Must be able to match all 4 examples below : Must be able to match with or without the comma. : Ex: Stamford, CT 06901 : Stamford, Connecticut 06901 : Stamford, CT 06901-2064 : Stamford, Connecticut 06901-2064 : 2.For each date example below, use a REGEX to match the format: : Tue, 10 Dec 2012 19:45:45
| t******7 发帖数: 396 | 3 大哥,我对regex一窍不通。
【在 r**********g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : ^(\w+\s*)+\,?\s*\w\w+\s+\d\d\d\d\d(-\d\d\d\d)? : \d{5} may not be : supported by all regex libs : 第二个自己看着写吧
| r**********g 发帖数: 22734 | 4 一窍不通就学啊,不然我写了你也看不懂……
【在 t******7 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 大哥,我对regex一窍不通。
|
|