Either use the (^|,) (,|$) to optionally have the beginning of
string/end of string or comma or pad the front and back with a
hard-coded comma.(",#string#,")On 7/25/05, Andy Jarrett <[EMAIL PROTECTED]> wrote: > Hi, > > Im trying to find a word occurence in a list (comma deliminated) using RegEx > but the gray matter is letting me down. > > Here's a sample list im using. > > pass,pass,pass,10,andypass,pass,asdasdapass,pass,1pass,pass1,pass > > and this is where i am at > > [\,]+pass[\,]+ > > This gives me 100% positive results but doesnt use the first and last values > D'oh > > I've tried a few variations but so far no avail. > > Any help would be appreciated. > > Regards, Andy J > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:21:900 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
