… the validity with the php pregmatch function. The string starts with… Discussion Thread by realnsleo in Web Development
php
10 Years Ago
… the validity with the php pregmatch function. The string starts with… Discussion Thread by realnsleo in Web Development
php
… the validity with the php pregmatch function. The string starts with… Reply by digital-ether
10 Years Ago
… try the patterns of the pregmatch() but it seems like i… Discussion Thread by cosby in Web Development
php
9 Years Ago
… try the patterns of the pregmatch() but it seems like i… Discussion Thread by cosby in Web Development
php
i dont know deeply.. use array_search(); Reply by Shanti C
9 Years Ago
… try the patterns of the pregmatch() but it seems like i… Discussion Thread by cosby in Web Development
php
[QUOTE=Shanti Chepuru;668892]i dont know deeply.. use array_search();[/QUOTE] it dosent work i have try it before,sorry i didi'nt gve you the structure of my file. "2005_32.rtf" (23 ) S v Manqaba [2005] simon 45 ; "2005_33.rtf&… Reply by cosby
9 Years Ago
hi everyone can someone help me with the regular expression to chop the string in to peaces basically i am looking for a pattern to match this line in the file. "1980_1.rtf" (5 December 1984) Cosby and Cosby (189 street of people) i want to get … Discussion Thread by cosby in Web Development
php
9 Years Ago
hi everyone can someone help me with the regular expression to chop the string in to peaces basically i am looking for a pattern to match this line in the file. "1980_1.rtf" (5 December 1984) Cosby and Cosby (189 street of people) i want to get … Discussion Thread by cosby in Web Development
php
why not use a comma seperated data file that can easily be processed with php. does the file have to be formatted that way? Reply by somedude3488
9 Years Ago
does anyone know of any good resources for php regex for form validation. I am looking for good regex for name: (including -.' and no spaces in the first space no doubles of ..''-- phone: again no spaces at the start allowing + and - alpha: … Discussion Thread by shadiadiph in Web Development
php
…: [CODE=php]<? //name if (pregmatch('/((*[ ]*|*\-\-*)?[ ](*[ ]*|*\-\-*)|(*[ ]*|*\-\-*)[ ](*[ ]*|*\-\-*)?)/i',$data)) { //error found as… than one space } //phone if (pregmatch('/[^0-9]/i',$data)) { //error… Reply by cwarn23
8 Years Ago
Hi everyone, I have a project I'm working on where I am collecting data for a client on a form I host. They use "MailApe" (you know who I'm talking about), who aren't a very helpful group of monkeys. I need to collect the data to my db from my … Discussion Thread by GreaseJunkie in Web Development
…;; $error++; } }[/CODE] Then I have pregmatch and error output. All basic… Reply by GreaseJunkie
6 Years Ago
Code: [code]<?php $data = file_get_contents('http://support.xbox.com/en-gb/Pages/xbox-live/xbox-live-status.aspx'); preg_match_all('~<div id=\'xbox-live-status-box\'>\s*(<div.*?</div>\s*)?(.*?)</div>~is', $data, $matches );… Discussion Thread by MoreBloodWine in Web Development
php
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
[CODE] if(!preg_match("~[0-9A-Za-z-/]+~", $url_key)) {} [/CODE] The ~ marks the begin and end of the regex (any 2 matching chars). You do not need a comma to separate the items. The + says it has to be one or more of the preceding characters… Reply by pritaeas
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
[B]I forgot to mention that it needs to start with a slash /[/B] and only contain lower case letters and numbers too and the spacial chars as / _ - :-) [CODE] if(!preg_match([a-z][0-9][-/_], $url_key)){ $error[1] = '<small>Error submitting url key… Reply by klemme
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
So if i want it to begin with a slash, and then after that only allow lower case letters, numbers, dash and slash.. I understood preg_match returns 1 or 0, for false or true: [CODE] if(preg_match("/^[/][a-z0-9-/]+$/", $url_key)==0) { echo 'error… Reply by klemme
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
Because you used a slash as begin/end terminator, it means you will have to escape it, if you need to use it in the pattern (with a backslash). Reply by pritaeas
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
Thank you for helping out pritaeas! With this one: [CODE] if(!preg_match("~[0-9a-z-/]+~", $url_key)) {..} [/CODE] I can write anything as long as there is either a number, a lowercase letter or a slash or a dash. So this goes through the … Reply by klemme
6 Years Ago
Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working..… Discussion Thread by klemme in Web Development
Use the start and end markers ^ and $ Reply by pritaeas
6 Years Ago
i have random mobile number with text messages, how would i go about only viewing the numbers i want for example 1234 i have [CODE] foreach($message as $msg) echo $msg; [/CODE] which displays all the messages Discussion Thread by moroccanplaya in Web Development
php
… or go overboard with a pregmatch. Reply by diafol
5 Years Ago
Hi I currently have URL's looking like this when it is coming from a link: http://www.dev.xxxxxxxxxxxxxxxxxxxxxxxx.com/findanagent_details.php?recordID=4 I would like to hide the fact that recordID=4 How can I do this? Many thanks Discussion Thread by ebanbury in Web Development
php
…, unless you want to use pregmatch on the url extracting this… Reply by veedeoo
5 Years Ago
Hey there everybody!:) I need some help to make a piece of code i made work. It current gets the login process right, however it doesnt save the cookies right:( (AC-Web.org is running vBulletin 4.2) <?php $sites = array( array( &… Discussion Thread by Weliaz in Web Development
**@Weliaz** >It current gets the login process right, however it doesnt save the cookies right:( I'm not sure if you find an answer for your issue yet. You need to create a `pregmatch()` regex and plus does `codecall_$username.txt` exist at all? Reply by LastMitch
5 Years Ago
Hello, everyone. I've been attempting to make a proper proxy checker to check for HTTP proxies for a while, yet I've been unable to find one that correctly finds working proxies. The bulk of my code is below. $ch = curl_init(); //initizlize and… Discussion Thread by Resentful in Web Development
php
… called stripos or even better pregmatch. if (preg_match("/html/i… Reply by veedeoo
5 Years Ago
… do not write the own pregmatch, instead need to modify the… Discussion Thread by prem2 in Web Development
3 Years Ago
… do not write the own pregmatch, instead need to modify the… Discussion Thread by prem2 in Web Development
>I have tried several ways. But, the main problem is do not write the own pregmatch, instead need to modify the existing one which accepts the brackets(). Sorry this is unclear. Can you explain further? Reply by diafol
3 Years Ago
… do not write the own pregmatch, instead need to modify the… Discussion Thread by prem2 in Web Development
Brackets in where ? Beginning of file name with numbers inside brackets ? I'm not sure what you're actually trying. Below is the modified version of your pattern. $pattern = '/^(\([0-9]\))?.\w[\w\s\.\%\-\(\)\[\]]*$/u'; Reply by ko ko
3 Years Ago
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my … Discussion Thread by Aeonix in Web Development
php
2 Years Ago
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my … Discussion Thread by Aeonix in Web Development
php
Can.t you post code here? Pointing to a filehost is all well and good. But zips make me nervous if I don.t know the source. Also files on filehost are ysually temporary so a missing file could kill the thread for anybody perusing the thread in the future. Reply by diafol
2 Years Ago
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my … Discussion Thread by Aeonix in Web Development
php
Unfortunately I can't. Two reasons for that, [here's one (DaniWeb)](https://www.daniweb.com/community-center/daniweb-community-feedback/threads/500765/cannot-paste-anything), the second is that the script is dependant on 2 files (if not 3 or 4). Pasting it… Reply by Aeonix
2 Years Ago
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my … Discussion Thread by Aeonix in Web Development
php
By changing line 50 with: return array_map('trim', $z); you avoid new lines in the **ParseVariables()** generated array and let the regular expression match the pattern. A problem I see is an undefined index at line 60, which is: $… Reply by cereal
2 Years Ago
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my … Discussion Thread by Aeonix in Web Development
php
Before slamming solution into my editor, I'd like to ask you some questions (looking at your modifications). I want to learn it and understand it, instead of braindead-ily copy-paste everything. *[snap! deleted two questions, after some thinking I … Reply by Aeonix
2 Years Ago
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my … Discussion Thread by Aeonix in Web Development
php
> Line 30, $options = array(). Why did you need to declare $options as a parameter? The constructor works like a function, so you have to declare the expected parameters, as example when you call: $sys = new Engine(array('abc')); In the class… Reply by cereal
2 Years Ago