Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can do it using regular expressions in PHP. See tutorial: <a href="http://w3school.in/w3schools-php-tutorial/php-regular-expression/" rel="nofollow">http://w3school.in/w3schools-php-tutorial/php-regular-expression/</a></p> <pre><code>Function Description ereg_replace() The ereg_replace() function finds for string specified by pattern and replaces pattern with replacement if found. eregi_replace() The eregi_replace() function works similar to ereg_replace(), except that the search for pattern in string is not case sensitive. preg_replace() The preg_replace() function works similar to ereg_replace(), except that regular expressions can be used in the pattern and replacement input parameters. preg_match() The preg_match() function finds string of a pattern and returns true if pattern matches false otherwise. Expression Description [0-9] It matches any decimal digit from 0 through 9. [a-z] It matches any character from lowercase a through lowercase z. [A-Z] It matches any character from uppercase A through uppercase Z. [a-Z] It matches any character from lowercase a through uppercase Z. p+ It matches any string containing at least one p. p* It matches any string containing zero or more p’s. p? It matches any string containing zero or more p’s. This is just an alternative way to use p*. p{N} It matches any string containing a sequence of N p’s p{2,3} It matches any string containing a sequence of two or three p’s. p{2, } It matches any string containing a sequence of at least two p’s. p$ It matches any string with p at the end of it. ^p It matches any string with p at the beginning of it. [^a-zA-Z] It matches any string not containing any of the characters ranging from a through z and A through Z. p.p It matches any string containing p, followed by any character, in turn followed by another p. ^.{2}$ It matches any string containing exactly two characters. &lt;b&gt;(.*)&lt;/b&gt; It matches any string enclosed within &lt;b&gt; and &lt;/b&gt;. p(hp)* It matches any string containing a p followed by zero or more instances of the sequence hp. </code></pre> <p><strong>you also can use JavaScript: <a href="http://www.w3schools.com/jsref/jsref_obj_regexp.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_obj_regexp.asp</a></strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload