🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #232266

Re: regexp i preg_match_all

#232266
From: Jivanmukta
Date: Sun, 15 Sep 2019 17:01
14 lines
1257 bytes
Potrzebuję jeszcze napisać wyrażenie regularne do wydobywania wywołań 
funkcji ale tak, żeby nie pasowała deklaracja funkcji. Napisałem:

  [^a-z]\s*([a-z0-9_]+)\s*\(

ale mi dopasowuje do:

   function invoice(

a chciałbym tylko do:

   invoice(

Jak to napisać?
Technical Details
Message-ID: <qllqpb$2qgr8$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-136-160.play-internet.pl!not-for-mail
References: <q4pgvm$195q8$1@portraits.wsisiz.edu.pl> <1ezuqyf495vtd$.arxqm4nq5gre.dlg@40tude.net> <ql8poh$3log7$1@portraits.wsisiz.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-136-160.play-internet.pl!not-for-mail
From: Jivanmukta <jivanmukta@poczta.onet.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: regexp i preg_match_all
Date: Sun, 15 Sep 2019 19:01:29 +0200
Organization: http://www.wit.edu.pl
Message-ID: <qllqpb$2qgr8$1@portraits.wsisiz.edu.pl>
References: <q4pgvm$195q8$1@portraits.wsisiz.edu.pl> <1ezuqyf495vtd$.arxqm4nq5gre.dlg@40tude.net> <ql8poh$3log7$1@portraits.wsisiz.edu.pl>
Mime-Version: 1.0
Injection-Date: Sun, 15 Sep 2019 17:01:31 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="user-5-173-136-160.play-internet.pl:5.173.136.160"; logging-data="2966376"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
In-Reply-To: <ql8poh$3log7$1@portraits.wsisiz.edu.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit