On Apr 8, 10:59 pm, char...@pulsenet.com wrote:
> On Apr 8, 9:06 pm, sono...@fannullone.us wrote:
>
> > Three hours later, I finally had a brainstorm, and came up with the
> > idea to count the number of occurrences of the words I'm looking for.
> > Here's what I came up with:
>
> > my $
On Apr 8, 9:06 pm, sono...@fannullone.us wrote:
> Three hours later, I finally had a brainstorm, and came up with the
> idea to count the number of occurrences of the words I'm looking for. Here's
> what I came up with:
>
> my $str = "PO Box 6545 / 3546 Termbo Street";
> my $address_coun
On Apr 8, 9:06 pm, sono...@fannullone.us wrote:
> Three hours later, I finally had a brainstorm, and came up with the
> idea to count the number of occurrences of the words I'm looking for. Here's
> what I came up with:
>
> my $str = "PO Box 6545 / 3546 Termbo Street";
> my $address_coun
Three hours later, I finally had a brainstorm, and came up with the
idea to count the number of occurrences of the words I'm looking for. Here's
what I came up with:
my $str = "PO Box 6545 / 3546 Termbo Street";
my $address_count = 0;
$address_count++ while ($str =~ /box|street|avenue|
Hello,
I'm wanting to test for the presence of two or more words, from a short
list of words, in an address input field in a Perl shopping cart, i.e. both
'box' and 'street', or both 'apo' and 'avenue', etc. and pop up a message.
I've found how to do "or" searches with regex, but not "
> "RD" == Rob Dixon writes:
RD> On 08/04/2011 10:43, Uri Guttman wrote:
>>
>> by definition, xs is NOT a beginner perl issue. please find another
>> forum for your question.
RD> This is rather churlish of you Uri. If he gets no answer here, what
RD> harm has he done? At the very
On 08/04/2011 10:43, Uri Guttman wrote:
by definition, xs is NOT a beginner perl issue. please find another
forum for your question.
This is rather churlish of you Uri. If he gets no answer here, what
harm has he done? At the very least you could suggest such an
alternative forum.
And "by def
On 04/08/2011 03:12 AM, Anirban Adhikary wrote:
Can anybody please explaing the meaning of the following regular expression
my $x = '12abc34bf5';
@num = split /(a|b)+/, $x;
YAPE::Regex::Explain is great for this:
[pdurbin@beamish ~]$ perl -MYAPE::Regex::Explain -e 'print
YAPE::Regex::Explai
This is a nitpick, but..
On Fri, Apr 8, 2011 at 9:34 AM, Shawn H Corey wrote:
> To get it to capture the sequence of a's and b's, use:
>
>
> @num = split /((?:a|b)+)/, $x;
>
> To get it to not capture any matches, use the non-capture parentheses:
>
>
> @num = split /(?:(?:a|b)+)/, $x;
>
split /[a
On 11-04-08 03:12 AM, Anirban Adhikary wrote:
my $x = '12abc34bf5';
@num = split /(a|b)+/, $x;
print "NUM=@num\n";
NUM=12 b c34 b f5
`split` normally splits a string by separating the string into segments
by the regular expression. The following split a string into "words",
that is, text
On Fri, Apr 08, 2011 at 02:18:19AM +0100, Patrick Dupre wrote:
> Hello,
>
> I created my interface in c by using xs.
>
> This work fine:
>
> transition_HF*
> init___ ()
> PREINIT:
> transition_HF *trans ;
> CODE:
> trans = (transition_HF*) malloc (sizeof (transition_HF)) ;
>RETVA
by definition, xs is NOT a beginner perl issue. please find another
forum for your question.
uri
--
Uri Guttman -- u...@stemsystems.com http://www.sysarch.com --
- Perl Code Review , Architecture, Development, Training, Support --
- Gourmet Hot Cocoa Mix
On 2011-04-08 09:31, Uri Guttman wrote:
this is how alternation works with grabbing.
And in case you wonder what 'grab' means:
the Perl documentation uses 'capture'.
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
htt
Hello,
I created my interface in c by using xs.
This work fine:
transition_HF*
init___ ()
PREINIT:
transition_HF *trans ;
CODE:
trans = (transition_HF*) malloc (sizeof (transition_HF)) ;
RETVAL = trans ;
OUTPUT:
RETVAL
but if I make a push:
like:
XPUSHs (sv_2mortal (newRV
I'm a big fan of Notepad++ myself, with either a command prompt or SSH
window. Luckasoft's Perl Editor Lite is a little more full-featured
for refactoring, but NP++ is the swiss army chainsaw of text editors
on the Windows platform. Free (as in freedom), too.
-bnfojoe
On Apr 7, 8:28 am, xydh...@
sure..
On Fri, Apr 8, 2011 at 1:29 PM, Uri Guttman wrote:
>
> please always reply to the list. resend that to the list.
>
> uri
>
> --
> Uri Guttman -- u...@stemsystems.com http://www.sysarch.com --
> - Perl Code Review , Architecture, Development, Traini
> "AA" == Anirban Adhikary writes:
AA> my $x = '12abc34bf5';
AA> @num = split /(a|b)+/, $x;
AA> print "NUM=@num\n";
AA> NUM=12 b c34 b f5
AA> Does it mean split the string ,here separaters are 'a' or 'b'(one or
AA> more occurance because of + metacharacter).
AA> If it matches
Hi list
Can anybody please explaing the meaning of the following regular expression
my $x = '12abc34bf5';
@num = split /(a|b)+/, $x;
print "NUM=@num\n";
NUM=12 b c34 b f5
Does it mean split the string ,here separaters are 'a' or 'b'(one or
more occurance because of + metacharacter).
If it matc
18 matches
Mail list logo