A quick question about black regex.

View: New views
4 Messages — Rating Filter:   Alert me  

A quick question about black regex.

by aja-lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I've just put this in the black regex (blackRe:) section :

\b.cn/\b   for wanting to score for the mention of .cn/

but testing this doesn't seem to score for this.
Is the expression wrong, or are characters like / not possible in here ?

Regards,
A.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-user mailing list
Assp-user@...
https://lists.sourceforge.net/lists/listinfo/assp-user

Re: A quick question about black regex.

by Fritz Borgstedt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For Users of ASSP  <assp-user@...> schreibt:
>Is the expression wrong, or are characters like / not possible in
>here ?

You mast escape them.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-user mailing list
Assp-user@...
https://lists.sourceforge.net/lists/listinfo/assp-user

Re: A quick question about black regex.

by aja-lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fritz Borgstedt wrote:
> For Users of ASSP  <assp-user@...> schreibt:
>> Is the expression wrong, or are characters like / not possible in
>> here ?
>
> You mast escape them.

Yes. I've used the following : \b\.cn\b but that failed to score points.

However, I just found out that this *does* work : \b?\.cn\b
Even when there's simply a space is in front of .cn (in the email).

:)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-user mailing list
Assp-user@...
https://lists.sourceforge.net/lists/listinfo/assp-user

Re: A quick question about black regex.

by Fritz Borgstedt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For Users of ASSP  <assp-user@...> schreibt:
>Yes. I've used the following : \b\.cn\b but that failed to score
>points.

Use
>\.cn\b
 (.cn you are looking for is always part of a string)


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-user mailing list
Assp-user@...
https://lists.sourceforge.net/lists/listinfo/assp-user