🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.tcl
Article #343

Re: regexp bez podsłów

#343
From: Googie
Date: Mon, 27 Feb 2006 14:49
16 lines
1436 bytes
koctyxa wrote:
> 
>> Może podmieniaj " bb " na " xx " zamiast samo "bb" :) Wtedy będzie 
>> łatwiej, bo regexp będzie:
>> \sbb\s
> 
>   Ale to może być np. "(bb)", "bb*cc", "//bb" itp., gdzie te wszystkie 
> znaki nie są metaznakami.

Nie jestem aż takim guru jeśli chodzi o regexp, ale ja bym to zrobił 
używając [string first], a następnie sprawdzając znaki: przed ([string 
first]-1), oraz po znalezionym wyrazie ([string first]+[string length]+1).

-- 
Pozdrawiam! (Greetings!)
Googie
Technical Details
Message-ID: <dtv2u4$u6m$1@srv.cyf-kr.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!not-for-mail
References: <op.s5mlego53jrrtc@bmw-ws076.bqeu.corp.com> <dtupgj$nk1$1@srv.cyf-kr.edu.pl> <op.s5msedmf3jrrtc@bmw-ws076.bqeu.corp.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!not-for-mail
From: Googie <no@spam.org>
Newsgroups: pl.comp.lang.tcl
Subject: Re: regexp bez podsłów
Date: Mon, 27 Feb 2006 15:49:34 +0100
Organization: Academic Computer Center CYFRONET AGH
Lines: 16
Message-ID: <dtv2u4$u6m$1@srv.cyf-kr.edu.pl>
References: <op.s5mlego53jrrtc@bmw-ws076.bqeu.corp.com> <dtupgj$nk1$1@srv.cyf-kr.edu.pl> <op.s5msedmf3jrrtc@bmw-ws076.bqeu.corp.com>
NNTP-Posting-Host: ip-7-197.ists.pl
Mime-Version: 1.0
X-Trace: srv.cyf-kr.edu.pl 1141051140 30934 193.25.7.197 (27 Feb 2006 14:39:00 GMT)
X-Complaints-To: news@cyf-kr.edu.pl
NNTP-Posting-Date: Mon, 27 Feb 2006 14:39:00 +0000 (UTC)
User-Agent: Thunderbird 1.5 (Windows/20051201)
In-Reply-To: <op.s5msedmf3jrrtc@bmw-ws076.bqeu.corp.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit