Generate a random number with regex on Yahoo Pipes? - regex

I want to replace the item title of an RSS feed on Yahoo Pipes with a random number but can't find out how to do it?
Any ideas please?
Thanks

You could use the fetch_page module and a little regex to extract a random number from a lotto generator page.
http://www.lottonumbers.net/uk-daily-play-number-generator.asp
Ammendum: As of April 2012 the basic 'Fetch page' module has been depreciated and replaced with
'XPATH Fetch Page', same principle but slightly different syntax for defining content to be extracted.

Related

Can't Get Regex To Work in uBot - Extracting Phone Numbers

Got a block of text I'm trying to pull phone numbers out of.
for example:
Phone Numbers
Any phone numbers that Angelo may currently or previously have used
are displayed below. Run a phone report on a particular number for
more information.
(555) 444-5555 (555) 555-7777 Not seeing something? Access additional
data sources. Accessing premium data sources may reveal hard to find
phone numbers like cell phones
the regex code I wrote to extract the numbers is
.?\d{3}.?\s\d{3}.\d{4}
For whatever reason, the results turn back blank and I'm not sure why. I've tested this regex code inside a uBot Expresion Checker and it pulls the phone numbers out as it should. But once I enter it in uBot it pulls nothing.
Any help? Thanks
FIGURED IT OUT:
.*\d3.?\s\d{3,5}.\d{3,5}
for whatever reason uBot wouldn't display the phone numbers correctly until I had the above worked out.

Using RegEx to Find a Block of Text

I'm attempting to block a long string of unnecessary text that's on every page of a document.
Ex: "36075 This is another page and this is the date March 4 2013"
I know this must be very simple, but I'm hoping there is a way to block text verbatim. Is the only way to block this text by using a lot of /d/s/w+/+ etc or is there is a way to say, "match 36075 This is another page and this is the date March 4 2013".
This would be SO HELPFUL to know. Thank you for helping!
From what you wrote I assume you need to get leading numbers from string, to do it you just need to use this pattern: ^\d+ which from this input:
36075 This is another page and this is the date March 4 2013
will return this:
36075
For future, in case of such questions please provide example string and expected output. As well as what you have tried.
I realized the issue I was having. I didn't need to use RegEx. The program I was using has the functionality to match specific words or groups of words and pronounce them differently. What I discovered is that it will not match the words unless the word groups are input exactly the way the program typically reads them.
Ergo --> The channel saw
the end of the British hold over
Would have to be listed as one group for, "The channel saw" and a second group for "the end of the British hold over"
In addition, there were some numbers --> 11960_30_o_ho_
and if the program naturally read 119 and then 60_3 and then _o_ho_ then three strings would need to be input for each section.
A few frustrating hours later, problem solved :) Thank you for your assistance.

Insert and activate a phone number in a generated word document

I would like to add a phone number to a word document that I generate using the mso api.
In word, when one writes (Tel:00493298402938) and new line, the phone number is activated automatically.
While trying to record the corresponding macro and check the VBA code, it doesn't show the same behavior and the phone number is interpreted as a normal text.
Any helpful source code in VBA, C# or C++ is welcome.
Thanks!
Maybe the following code would be helpful to you?
ThisWorkbook.ActiveSheet.Hyperlinks.Add Range("A1"), "http://stackoverflow.com"
Just instead of the web address you would need the phone number.

Text replacement in Apple Pages document using AppleScript

I need to replace hundreds of non-superscripted commas that appear between two superscripted one-, two-, or three-digit numbers by a superscripted comma in an Apple Pages document. What's the best way or at least a good way to do this in AppleScript? (Based on what I read, AppleScript should be able to do this and normally I would teach myself, but because of a fast-approaching deadline, I do not have time to do so.)
Thanks for your help.

Incremental number in RegEx

I'm using Bulk Image Downloader to download whole images in a forum thread.
But I need the regular expression to identify the page number increments.
The URL string of the page is this:
/topic/2244447/+(page number goes here)
Here's the situation, the page numbers are incremented by +20. So the second page URL is /topic/2244447/+20 and third page is /topic/2244447/+40 and so on.
How can I put the regex for this?
\/topic\/2244447\/\+([0-9]*[02468])?0$
Just being careful:
I took a look at the documentation, page 28 of the Bulk Image Downloader user's guide.
I wonder whether your page numbers end with 0 or 1.
If the + will not exist anywhere else, then this should work although it will match any number with any number of digits after the +.
\+\d+