what is tool to check online regex

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
ducdm87
Forum Newbie
Posts: 4
Joined: Thu Jun 20, 2013 4:53 am

what is tool to check online regex

Post by ducdm87 »

anyone know about regex tutorial pages and online tests
i see http://php.toolregex.com easy to use
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: what is tool to check online regex

Post by mecha_godzilla »

Hi,

Do you need to know what these tools are used for, or do you just want links to other tools that do the same thing but in a different way?

A list of the in-built functions in PHP that relate to regular expression (regex) matching and replacement can be found in the PHP manual:

http://uk.php.net/manual/en/ref.pcre.php

HTH,

Mecha Godzilla
ducdm87
Forum Newbie
Posts: 4
Joined: Thu Jun 20, 2013 4:53 am

Re: what is tool to check online regex

Post by ducdm87 »

thanks so much mecha_godzilla.
I started to learn about regex. Do you know any website online support regex test
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: what is tool to check online regex

Post by mecha_godzilla »

If you are learning how to use regular expressions, the following site might be helpful:

http://www.noupe.com/php/php-regular-expressions.html

Some of the online regex tools are quite difficult to use, so you might be better to look for specific code examples of what you want to use regular expressions for such as:

- validating telephone numbers and addresses
- removing all non-word characters from a text string
- converting special characters (such as "&" or "@") to textual equivalents ("and" or "at") to create "safe" permalinks or filenames
- substituting a placeholder in a template for equivalent live data

M_G
User avatar
ragax
Forum Commoner
Posts: 85
Joined: Thu Dec 15, 2011 1:40 pm
Location: Nelson, NZ

Re: what is tool to check online regex

Post by ragax »

The list of online regex tools seems to be mushrooming endlessly.
I suspect that making an online regex checker is an assignment in some computer science classes. The result is a plethora of regex checkers with me-too features—and it becomes hard to know which ones to use, particularly if you're married to a particular language.

My strong preference is for offline tools. For PHP, up to now regexbuddy had patchy support of PCRE features such as recursion, \K and so on, but as of the beta for RB4 (not public) this will all be fixed.
HeyThere
Forum Newbie
Posts: 2
Joined: Thu Jan 09, 2014 7:19 am

Re: what is tool to check online regex

Post by HeyThere »

I like offline tools too. However, if I want to send somebody a working regular expression I often end up using this site: http://php-functions.online-domain-tool ... CSN4ZIiQx/ since a colleague does not need anything except a browser.
Post Reply