[REBOL] newbie parsing question
From: jseq:mediaone at: 3-Mar-2001 13:39
I've been wrestling unsuccessfully with the parsing dialect on the following
simple(?) problem.
I've got an <IMG SRC=""> tag, and I'd like to parse the filename in the SRC
attribute.
The format of the filename is : /some-path/AAA00000s0.jpg or
/some-path/AAA00000s00.jpg where A is a character [A-Z], and 0 represents
a digit. I want to grab the one or two digits following the 's'.
In perl, this would be something like:
$html =~ s/s([0-9]+)\.jpg/$1/
I'm having a traumatic experience mapping this to REBOL. Any suggestions?