• Yahoo!
  • My Yahoo!
  • Mail
  •      Make Y! your home page
Yahoo! Search
Do you have feedback/suggestions for the Pipes team? We want to hear from you!
View: Simple | Summary | Expanded
As: Threaded | Msg List
Page 1 of about 1   First | < Prev | Next > | Last
Messages in Topic
View messages rated: What's this?
RegEx documentation started     27-Jun-08 08:08 am    
Hi! I've started a Wiki page containing some of the RegEx hints from the discussions and the suggestions.

http://www.kiesler.at/index.php?module=w...

Please feel free to add to it!
Rating :
 (No ratings)
Rate it:
awful/not related to \pooraveragegoodexcellent

Rene K

33/Male


View Messages

Ignore User

Report Abuse

Re: RegEx documentation started     27-Jun-08 09:45 am    
The ability to use embedded pattern-match modifiers, (?imsx), preceded the existence of the switches. It is, therefore, the switches that are the alternative. There is no switch for (?x), which allows white space and comments within an expression. You cannot use (?g) to replace the "g" switch.
Actually. the embedded modifiers and the switches are not alternatives, since they can produce different results. I only ever use the "g" switch.

To prefix an element replace [^] with [my prefix]. In a similar fashion use $ to suffix.
Rating :
 (No ratings)
Rate it:
awful/not related to \pooraveragegoodexcellent

hapdaniel

58/Male
NA


View Messages

Ignore User

Report Abuse

Re: RegEx documentation started     28-Jun-08 09:41 am    
Thanks, that's great information! I've updated the page.

Can you give an example for the X-switch? With comments, do you mean something preceeded by # ? or how does that work?

Also, is there some kind of example on how the checkboxes and the embedded modifiers work differently?
Rating :
 (No ratings)
Rate it:
awful/not related to \pooraveragegoodexcellent

Rene K

33/Male


View Messages

Ignore User

Report Abuse

Re: RegEx documentation started     28-Jun-08 11:54 am    
[(?s)^.*?>(\d+)<.*?<b>([^<]+).*?>(\d{4})<.*] could become
[(?sx)^ .*? >(\d+)< .*?<b>([^<]+) (?#part 2 of date).*?>(\d{4})<.*]
The white space is ignored as well as the comment.
It's probably not all that helpful in the Pipes context.

To see some differences between the switches and the embedded modifiers use my copy of the gymnastics pipe. You can use the URL http://64.233.183.104/search?q=cache:WxZ... (possibly without the client parameter). At the time I tried the Google link the cache pointed to the old page. The images don't show up using the cached version. Anyway, just substitute all the (?s) modifiers for the "s" switch. The whole thing just goes to pot. I did try and work out how they were different but gave up.
Rating :
 (No ratings)
Rate it:
awful/not related to \pooraveragegoodexcellent

hapdaniel

58/Male
NA


View Messages

Ignore User

Report Abuse

Re: RegEx documentation started      5-Jun-09 09:17 am    
Hi guys, great idea!

Im having some trouble with a little regex. Im filtering a url which has \ codes. as...
http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/75075164\/twitter_bird_profile_normal.png ... but cant seem to remove them.

Any help?

Thanks :)
Rating :
 (No ratings)
Rate it:
awful/not related to \pooraveragegoodexcellent

filipe l

Male


View Messages

Ignore User

Report Abuse

Re: RegEx documentation started      5-Jun-09 09:33 am    
Please supply a link to your pipe.
Rating :
 (1 Rating)
Rate it:
awful/not related to \pooraveragegoodexcellent

hapdaniel

58/Male
NA


View Messages

Ignore User

Report Abuse

View: Simple | Summary | Expanded
As: Threaded | Msg List
Page 1 of about 1   First | < Prev | Next > | Last