Re: wildcard matching

2005-07-23 Thread Jeff 'japhy' Pinyan
On Jul 23, dan said: i wasn't planning on using ? to match a single character, i figured that would be getting too complicated. how would that be done anyway? i must say my regex skills aren't very good :/ The ? metacharacter would map to Perl's . regex metacharacter. $temp1 =~ s{([^\w\s]

Re: wildcard matching

2005-07-23 Thread dan
this worked a treat. thank you so much. i wasn't planning on using ? to match a single character, i figured that would be getting too complicated. how would that be done anyway? i must say my regex skills aren't very good :/ dan "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re: wildcard matching

2005-07-22 Thread Jeff 'japhy' Pinyan
On Jul 22, dan said: the wildcard search could be anything like an exact match with no wildcards in, or a proper wildcarded search. such as: *.co.uk someones.hostname.com Do you plan on allowing the '?' wildcard to match any single character? Just curious how robust this should be. sub wcm

Re: wildcard matching

2005-07-22 Thread John W. Krahn
dan wrote: > hi Hello, > i have a bit of a puzzling question. well, puzzling to me anyway. > i have a sub which is passed 2 arguments. a wildcard search, and an actual > string to search in. > the wildcard search could be anything like an exact match with no wildcards > in, or a proper wildcarded

wildcard matching

2005-07-22 Thread dan
hi i have a bit of a puzzling question. well, puzzling to me anyway. i have a sub which is passed 2 arguments. a wildcard search, and an actual string to search in. the wildcard search could be anything like an exact match with no wildcards in, or a proper wildcarded search. such as: *.co.uk someon

Re: Wildcard matching

2003-03-04 Thread dan
Excellent, worked brilliantly. Cheers Dan "Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dan wrote: > > Hi > > > > I'm not entirely sure if this is possible, but I'm going to ask anyway > > (after all I'm not an *expert* on perl, you always learn something > > new). > >

Re: Wildcard matching

2003-03-04 Thread Rob Dixon
Dan wrote: > Hi > > I'm not entirely sure if this is possible, but I'm going to ask anyway > (after all I'm not an *expert* on perl, you always learn something > new). > > Is is possible to match: > [EMAIL PROTECTED] with [EMAIL PROTECTED] ? Hi Dan. For this particular case you can convert the gl

Wildcard matching

2003-03-04 Thread dan
Hi I'm not entirely sure if this is possible, but I'm going to ask anyway (after all I'm not an *expert* on perl, you always learn something new). Is is possible to match: [EMAIL PROTECTED] with [EMAIL PROTECTED] ? I've managed to split it up into 3 variables each, $nicktomatch contains "*" $ide