Lines 110 - 116 |
Lines 110 - 116 |
|
|
Sometimes, you'd like to add something in front of a field. For example, to add a "Yahoo: " in front of every title, you could |
Sometimes, you'd like to add something in front of a field. For example, to add a "Yahoo: " in front of every title, you could |
|
|
* Replace [^] with [Yahoo: $1] |
* Replace [(^)] with [Yahoo: $1] |
|
|
$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. |
|
|
Lines 121 - 127 |
Lines 121 - 127 |
|
|
And to suffix something, you'd use a $ instead of the ^. |
And to suffix something, you'd use a $ instead of the ^. |
|
|
* Replace [$] with [Yahoo: $1] |
* Replace [($)] with [Yahoo: $1] |
|
|
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] |
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] |
|
|