[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - [WMP-TOOL] regex tester
aan alle goede dingen komt een eind, webmasterplein.net 2003 - 2013
wij danken jullie voor al mooie momenten die dankzij dit forum ontstonden - Derk, Rutger en Stef

[WMP-TOOL] regex tester

Je komt er niet helemaal uit bij het scripten? Übergoede functie geschreven? Alles met betrekking tot scripting, kun je hier terecht.

[WMP-TOOL] regex tester

Berichtdoor libia » 23 feb 2008 18:36

Laatst bijgewerkt door libia op 26 feb 2008 14:15, in totaal 2 keer bewerkt.
ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: [WMP-TOOL] regex tester

Berichtdoor Johan » 23 feb 2008 20:03

Wat is regex? :?
Avatar gebruiker
Johan
wmpr
 
Berichten: 676
Geregistreerd: 07 jan 2008 15:42

Re: [WMP-TOOL] regex tester

Berichtdoor libia » 23 feb 2008 20:05

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 23 feb 2008 20:13

Allicht handig om de ingevulde velden te laten staan na het submitten, zodat je je regex nog even kan tweaken en niet steeds opnieuw erin hoeft te zetten.
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor libia » 23 feb 2008 20:39

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: [WMP-TOOL] regex tester

Berichtdoor Stef » 24 feb 2008 12:21

Avatar gebruiker
Stef
wmpr
 
Berichten: 5575
Geregistreerd: 27 nov 2003 21:51

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 24 feb 2008 12:37

Mooi, werkt prima. Hoewel de invoerveldjes wel een stuk groter mogen, en miss. een textarea van de onderste om newlines te kunnen testen?
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor Stef » 24 feb 2008 12:49

Zoiets? tools/regex
Avatar gebruiker
Stef
wmpr
 
Berichten: 5575
Geregistreerd: 27 nov 2003 21:51

Re: [WMP-TOOL] regex tester

Berichtdoor frizzy » 24 feb 2008 12:58

Mischien wel leuk om de laatste paar geteste regex-en te laten zien
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 24 feb 2008 14:03

Zo issie mooi ja. :D

Ik dacht eerder aan wat veelgebruikte regex-en zoals die voor website URL's en e-mailadressen dan de laatst gebruikte.
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor Stef » 24 feb 2008 14:18

Avatar gebruiker
Stef
wmpr
 
Berichten: 5575
Geregistreerd: 27 nov 2003 21:51

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 24 feb 2008 14:41

Ik heb wel wat regexjes, maar ik zoek eigenlijk naar de officiele specs van o.a. domeinnamen (bijv, dat deze max 64 tekens bevat, en TDL altijd tussen de 2 en 5 tekens etc), weet iemand die te vinden (ik niet namelijk)? Dan kan ik er een perfecte regex voor maken..
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor libia » 24 feb 2008 18:25

hoe bedoel je elbert?

@stef, als je een typefout in de regex maakt (bijv. een haakje vergeten) dan geeft hij een error boven aan de pagina..
ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 24 feb 2008 18:40

Er zijn bepaalde regels voor URL's, bijv. de tekens die je mag gebruiken en hoelang deze mag zijn etc. Ik neem aan dat het ICANN daar wel ergens een specificatie van heeft ofzo..
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor libia » 24 feb 2008 18:48

(http:\/\/)((www|[a-zA-Z][a-zA-Z0-9\.\-\_]*[a-zA-Z0-9])\.)?([a-zA-Z][a-zA-Z0-9\.\-\_]+[a-zA-Z0-9])\.([a-z]{2,4})

aantallen weet ik alleen niet precies (http:// gevolgt door www. / een letter,een letter/cijfer/. / - / _ (0 of meer keer),een letter of een cijfer, . / niets gevolgt door een letter, een letter / een cijfer / . / - / _ (1 of meer keer) gevolgt door een . gevolgt door een kleine letter (2 3 of 4 keer))
ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 24 feb 2008 19:09

Maar de geldige URL "https://x.domain.hotel/" komt daar om een stuk of 5 redenen niet doorheen.

Edit: gevonden. :}

http://en.wikipedia.org/wiki/URI_scheme#Generic_syntax
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 24 feb 2008 19:51

Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor libia » 24 feb 2008 20:23

aja.. daar had ik niet aan gedacht :)
ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Re: [WMP-TOOL] regex tester

Berichtdoor frizzy » 25 feb 2008 11:20

Hé, die regex had ik net nodig :D tnx mensen ;)
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 25 feb 2008 11:36

Hé hé rustig aan, er rust auteursrecht en een duurbetaalde licentie op. -_-
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor frizzy » 25 feb 2008 11:37

frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 25 feb 2008 11:39

Wat doet ie niet? :(
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor frizzy » 25 feb 2008 11:39

Ik krijg vage error
frizzy
wmpr
 
Berichten: 4261
Geregistreerd: 20 sep 2006 16:03
Woonplaats: Boskoop :D

Re: [WMP-TOOL] regex tester

Berichtdoor ElbertF » 25 feb 2008 11:43

Geef de error en de URL dan even, dan kan ik het fixen.. Ik had achteraf nog wat tweaks toegevoegd maar niet gechecked.

Edit: heb je de tool hier gebruikt? Die geeft blijkbaar een error terwijl de regex bij mij wel klopt.. Foutje in de tool?
Avatar gebruiker
ElbertF
wmpr
 
Berichten: 1310
Geregistreerd: 14 nov 2007 22:09

Re: [WMP-TOOL] regex tester

Berichtdoor libia » 25 feb 2008 12:01

nee, geen fout in de tool.. het wordt namelijk gewoon in de preg_match functie gestopt.. waarschijnlijk heb je een fout gemaakt, waardoor gewone url's het niet doen..

ola, un cerveza por favor.


of
Avatar gebruiker
libia
wmpr
 
Berichten: 4149
Geregistreerd: 23 okt 2005 14:14
Woonplaats: Alphe!!

Volgende

Keer terug naar PHP, ASP, SQL



cron