RegExp block output

Hi,

I'm trying to filter out the first word of a <description> item in a news feed. For this I created the regular expression ^(\w)+ , which matches the first word. I used the RegExp block, with the getMatches operation.

However, when I connect this block with a News Reader block (just to see the output), there seems to be no output at all..

I tried to create a named group in the regular expression, but I don't know how to resolve the named group in another block.

Any advice would be welcome,

cheers!

[563 byte] By [jillefloridor] at [2008-2-17]
# 1
You can't do this directly using the block editor today but if you add the regex and the texthelper block, you can get there with very little code
SriramKrishnanMSFT at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 2

Hi,

thanks for your reply.

I am using the regexp block, however, this block does't seem te be giving any output. Maybe I should rephrase, is there a way to view the output of a regexp block? The regular expression I am using is working just fine, I tried it in a dot net program. I suppose I have to use the windows syntax of regular expressions, not the perl syntax?

cheers

jillefloridor at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 3

You are correct the problem is in the regular expression. You need to specify below to get the first word:

^(\\w)+

jianxu at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...