skip to main content

kiesler.at
YahooPipesRegex
Back to Page | Back to History

Difference between revisions

Version 8, 2008-06-28 15:41 Version 9, 2008-06-28 15:43
Lines 17 - 23 Lines 17 - 24
   
In fact, you can use the modifiers "I, M, S and X" in embedded notation, while the checkboxes offer the options "I, M, S and G". So there's no X for checkboxes while there's no G for the embedded notification. In fact, you can use the modifiers "I, M, S and X" in embedded notation, while the checkboxes offer the options "I, M, S and G". So there's no X for checkboxes while there's no G for the embedded notification.
   
The answer is taken from the [http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?bn=pip-DeveloperHelp&tid=3410&mid=3414 Yahoo Pipes Discussions]. The answer is taken from the [http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?bn=pip-DeveloperHelp&tid=3410&mid=3414 Yahoo Pipes Discussions] and updated with information from [http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?m=te&bn=pip-DeveloperHelp&tid=4840&mid=4840&tof=1&frt=2#4840 RegEx documentation started].
   
   
**What they do** **What they do**
   
Lines 26 - 35 Lines 27 - 38
* **m** treat string as multiple lines. set='^' matches every start of string after a \n and/or \r . unset='^' matches only the very first character in the string. * **m** treat string as multiple lines. set='^' matches every start of string after a \n and/or \r . unset='^' matches only the very first character in the string.
* **s** allow '.' to match new lines as well. set='.' matches '\n'. unset='.' does not match '\n'. * **s** allow '.' to match new lines as well. set='.' matches '\n'. unset='.' does not match '\n'.
* **x** allow white spaces and comments within an expression. * **x** allow white spaces and comments within an expression.
   
   
**Embedded Notation** **Embedded Notation**
   
[http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?m=te&bn=pip-DeveloperHelp&tid=4415&mid=4415&tof=131&frt=2#4415 Hapdaniel] from the Yahoo Pipes Discussions points out, the original form of specifying those flags is the "embedded notation". If you prefix your RegEx with a (?x), you'll set the X-modificator. You cannot set a (?g) that way, though. [http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?m=te&bn=pip-DeveloperHelp&tid=4415&mid=4415&tof=131&frt=2#4415 Hapdaniel] from the Yahoo Pipes Discussions points out, the original form of specifying those flags is the "embedded notation". If you prefix your RegEx with a (?x), you'll set the X-modificator. You cannot set a (?g) that way, though.
   
   
**Checkbox Notation** **Checkbox Notation**
   
Lines 111 - 117 Lines 114 - 120
   
$1 matches the first group used (we have only one group in this example). And ^ matches the beginning of the expression. $1 matches the first group used (we have only one group in this example). And ^ matches the beginning of the expression.
   
Source: Source: [http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?m=te&bn=pip-DeveloperHelp&tid=4840&mid=4840&tof=1&frt=2#4840]RegEx documentation started]
   
   
**Postfixing something** **Postfixing something**
Lines 120 - 126 Lines 123 - 129
   
* Replace [$] with [Yahoo: $1] * Replace [$] with [Yahoo: $1]
   
Source: Source: [http://discuss.pipes.yahoo.com/Message_Boards_for_Pipes/threadview?m=te&bn=pip-DeveloperHelp&tid=4840&mid=4840&tof=1&frt=2#4840 RegEx documentation started]
   
   
**Translating dates** **Translating dates**