🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: regexp i preg_match_all

#232265
From: Jivanmukta
Date: Wed, 11 Sep 2019 09:21
11 lines
1440 bytes
W dniu 10.09.2019 o 20:24, Jivanmukta pisze:
> Mam jeszcze jedno pytanie:
> 
> Potrzebuję dla stringu "           REGION_ID . ' ' . // mazowieckie" 
> wydobyć stałą REGION_ID. Użyłem wyrażenia regularnego: 
> [^\$]([A-Z_][A-Z0-9_]*) ale jest źle bo dostaję "EGION_ID". Jakim 
> wyrażeniem wydobywać stałe?

Właściwie to powininem uwzględnić że nie może być nawias za stałą oraz 
małe litery.
[^\$]([A-Za-z_][A-Za-z0-9_]*)\s*[^\(]
Technical Details
Message-ID: <qlaebg$916k$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-94-254-233-89.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-94-254-233-89.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: Wed, 11 Sep 2019 11:21:51 +0200
Organization: http://www.wit.edu.pl
Message-ID: <qlaebg$916k$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: Wed, 11 Sep 2019 09:21:52 -0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="user-94-254-233-89.play-internet.pl:94.254.233.89"; logging-data="296148"; 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