|
Carlos | Posted at 7:27am on Monday, August 27th, 2007 |
Very usefull |
Carlos | Posted at 7:31am on Monday, August 27th, 2007 |
Why this regex "^-\(w+)" does not retreive enything from here "-lolo",
Thank you very much |
Perlfect | Posted at 7:35am on Monday, August 27th, 2007 |
Carlos, the backslash should be before the "w+", not the parenthesis. Your regex should read "^-(\w+)", without the quotes. |
Eddie | Posted at 12:51pm on Tuesday, September 11th, 2007 |
I put (/w+) in your tutorial running on \fredupperlower/clipped/file.txt and it matches /clipped, which I want it to. But in my script, it's not working. The sequence is:
$dir = $File::Find::dir;
$dir =~ /(/w+)/;
$dirname = $1;
print "directory name: $dirnamen"; |
Eddie | Posted at 1:16pm on Tuesday, September 11th, 2007 |
I tried using:
$dir =~ m!/(w+)!;
and that seemed to work (better than I expected, since it returns "clipped" instead of "/clipped" which is easier to work with for my purposes). |
Agus | Posted at 10:19am on Thursday, September 13th, 2007 |
I need your, how to validate phone number. eg: (021)087655 or 021-56745.
thanks |
Sleve | Posted at 6:53pm on Monday, September 24th, 2007 |
Agus: (d{3})d{6} or
d{3}-d{5}
I forget how to make it so that "either" will grab the line.
(((d{3})d{6})|(d{3}-d{5})) should have done it, I think, but it failed to catch the second one in capture groups. |
Sleve | Posted at 6:56pm on Monday, September 24th, 2007 |
Agus: I put it in correctly, but the comment engine stripped out some back slashes. There should be a backslash before each parenthesis in the first one listed. |
Kokok | Posted at 12:30am on Thursday, January 10th, 2008 |
This page is great to test my regex |
Siidheesh | Posted at 11:03pm on Friday, October 24th, 2008 |
Now that my regex, (TEXT|MATH)[_](.+)[(](.+)[)], is working correctly, how do I enclose the regex in an 'if' statement to test a variable against it and get the $1, $2 and $3 variables. |
Karyn | Posted at 8:38am on Monday, November 17th, 2008 |
Excellent - saved me a lot of time from running the script, changing the regexpr, running it again, re-changing the regexpr etc. Thanks! |
Dennis | Posted at 9:32pm on Wednesday, December 31st, 2008 |
Question: How do I validate the 'regular expression' itself before using it? I have an application that allows users to enter regular expressions to 'mask' data and it blows up if they enter an invalid regular expression. Would like to check the regex first for validity to prevent it from blowing up the script when it is actually used... Thanks in advance, Dennis |
thyme | Posted at 10:45am on Tuesday, January 13th, 2009 |
Which regular expression can I use to extract the FOUR-DIGIT number in the text "my name is mgt, I have 1234 at someplace"
Please help!!! |
Score_Under | Posted at 1:25pm on Thursday, January 15th, 2009 |
@Thyme:
bd{4}b |
Score_Under | Posted at 1:25pm on Thursday, January 15th, 2009 |
Sorry, it filtered the backslashes. There was a backslash before the "b", "d" and other "b". |
soger | Posted at 11:05am on Sunday, January 18th, 2009 |
Dennis: to validate a regular expression you can do something like this:
eval {''=~/$user_regex/};
if ($@) {
print "Invalid regular expression: $@";
} else {
do_something($user_regex);
} |
alper | Posted at 10:17am on Wednesday, February 4th, 2009 |
better than other online regex tools.. only thing is the text limit in box. is it really accepting only 36 characters ot is it my browser? |
Steven the Easily Amused | Posted at 10:25am on Monday, February 16th, 2009 |
Really Nice... just wish I could have a longer string as alper noted above. |
vobb | Posted at 10:25am on Monday, February 23rd, 2009 |
Nice. Simple, effective and visual. |
Nandu | Posted at 10:08pm on Sunday, April 26th, 2009 |
I need a clarofication for the following:-
For Input :cathatcatcat
Case 1)the regex ^(c|a|t|h)+$ results in the last "t" being matched
BUT
Case 2)^(c|a|t)+$ results in 0 matches
In (case 1) and (case 2) shouldn't the first "c" get matched?Please explain.. |
kuddus | Posted at 9:51am on Monday, May 4th, 2009 |
fine |
Scott | Posted at 12:40pm on Thursday, May 7th, 2009 |
Thanks for the tool. It helped me to study for my final! |
Benit | Posted at 10:21am on Tuesday, June 2nd, 2009 |
I want to capture the first occurrent of AND in the following statement :
C:/Test/AND/Check/Run_AND/AND.exe
I want to replace from C: to first occurrence of AND by some other path.
Please help me. |
Anonymous | Posted at 4:54pm on Thursday, June 11th, 2009 |
This is great tool. Thanks for making it available. I have one feature request: I'd like to be able to test regex expressions larger than 40 characters. |
keith | Posted at 6:12pm on Wednesday, June 17th, 2009 |
Nandu: In the first case, your regex is saying "match if the first character of the input is 'c' or 'a' or 't' or 'h' and every subsequent character is one of those characters, and the last character is one of those characters. So your result matches (bold) for all characters in the first case, and the group (in green) ends matching the last character t.
In the second case, the first character is in the group, but with 'h' omitted, when it gets to the 'h' in the input, it fails and there is no match.
In other words, your regex is saying: match if the input is a string of characters made up of any combination of one or more of the characters in the group from beginning to end. |
LCB | Posted at 2:31am on Wednesday, July 1st, 2009 |
How I can get the string:
11x-A-20 (ST)
1as-50tdt
(Atx-220)
The string can vary from numbers and letters, and combine hyphens (1,2,3,n or none) and parenthesis...
from this lines:
1 11x-A-20 (ST) 831771.8700
1 1as-50tdt 831771.8700
1 (atx-220) 831771.8700
I tried several regex but have no luck to catch it at all
anyone had any idea how to catch the string part of this? |
test | Posted at 6:44pm on Thursday, July 23rd, 2009 |
Awesome tool |
Yash | Posted at 7:44pm on Tuesday, July 28th, 2009 |
Thanks, it sorted out my stuff |
Jess | Posted at 11:24am on Wednesday, August 5th, 2009 |
WOWW!!!! SUPERB!!!!!!! it precisel;y told me wher i went wrong!!!!! |
FarmnerGiles | Posted at 2:54pm on Friday, August 7th, 2009 |
LCB: Try (d) ([dw-s()]*) d*.d* |
BlueINK | Posted at 8:41am on Monday, August 10th, 2009 |
LCB This Also Works
[0-9]s(.*)s[0-9]+ |
Blueink | Posted at 8:54am on Monday, August 10th, 2009 |
wierd it auto removed the backlashses
there should be backlash behind the s's which mean Space |
Anonymous | Posted at 3:04am on Friday, August 21st, 2009 |
very use ful |
femilopsy | Posted at 1:30pm on Monday, September 14th, 2009 |
please i tried the regex (LA/09A).*(s)(T) to match that a string starts with LA/09A/.
please tell me where i have gone wrong |
Dmytro | Posted at 4:21pm on Thursday, September 17th, 2009 |
Very useful tool! The only suggestion it would be prefect if you allow longer strings for regex. Thanks guys! |
chuck | Posted at 12:44pm on Thursday, October 1st, 2009 |
very nice |
Nicholas | Posted at 9:21am on Friday, October 16th, 2009 |
the minimum character length is quite restrictive. |
Nicholas | Posted at 9:21am on Friday, October 16th, 2009 |
the minimum character length is quite restrictive. |
Nicholas | Posted at 9:22am on Friday, October 16th, 2009 |
oops, i meant max... |
rohit | Posted at 12:28am on Saturday, October 31st, 2009 |
thanks |
Emil | Posted at 8:00pm on Sunday, November 8th, 2009 |
brilliant |
perlsgerl | Posted at 5:36pm on Saturday, November 14th, 2009 |
very useful tester. thanks |
uderman | Posted at 6:09pm on Friday, February 26th, 2010 |
Very usefull, thank you! |
Terziyski | Posted at 7:29pm on Wednesday, March 31st, 2010 |
Very useful indeed ! |
kevin | Posted at 1:17am on Friday, April 2nd, 2010 |
i'm having some trouble with this.
i have a string 'HASH(0x1f1c6950)'and i only want 0x1f1c6950.
can somebody please help me with this one because i'm very new at this.
thank you |
passer-by | Posted at 9:37pm on Friday, July 2nd, 2010 |
You might want to consider expanding the regex field's text input limit.
My regex statement got truncated due to this limit.
^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$ |
JWellington | Posted at 9:16pm on Friday, July 9th, 2010 |
Ok, I got a string of text, for example: "725.50 87.50 541.50"
I am trying to make sure that each string has at least two instances of .50, why is this not working?
m/.50{2,}/g
I've even tried: m/.{2,}/g
It still does not work. Please help. |
Andrew | Posted at 5:41am on Wednesday, July 14th, 2010 |
For those who want to type strings longer than 40 chars, use this greasemonkey script.
// ==UserScript==
// @name Bigger regex textboxes
// @namespace http://com.example
// @include http://www.perlfect.com/articles/regextutor.shtml
// ==/UserScript==
var form = document.getElementById("regextutor");
if (form) {
var inputs = form.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
inputs[i].setAttribute("size", 80);
inputs[i].setAttribute("maxLength", 500);
}
} |
Xavi | Posted at 8:32am on Tuesday, August 10th, 2010 |
Please allow to enter longer texts and regexes... |
Ken | Posted at 7:49am on Wednesday, August 25th, 2010 |
Nice app. This will definitely help me to understand regex commands better. |
ADSD | Posted at 7:39am on Friday, August 27th, 2010 |
Immediate Help! Very useful |
Nicholas | Posted at 8:20pm on Monday, September 20th, 2010 |
Ok so I want to make a phone number field for website registration, I used "(?b[0-9]{3})?[-. ]?[0-9]{3}[-. ]?[0-9]{4}b" but this does not allow users who want to put a + and country code. How do i allow this but not enforce it? |
Philip | Posted at 5:05am on Wednesday, September 29th, 2010 |
i came across many other sites for regex evaluation and as usual it did not help... but this one site is awesome... i get to test the regex and try them out and correct it and i particularly like the results matching part ... hats off to the guys behind this... |
TeamWok | Posted at 3:05am on Wednesday, October 20th, 2010 |
How can I find all vowels in a string by using single line regex
String like this:
"hello this hello thanks" |
pandey | Posted at 1:22am on Wednesday, November 24th, 2010 |
i m a begener of perl i m doing self study,
so tel me how can i learn regex, $ how i use all symbols use in programming ?? |
Leo | Posted at 3:00pm on Tuesday, January 11th, 2011 |
Very useful site. For reference to Perl RegEx -
http://perldoc.perl.org/perlretut.html |
Richard Sunary | Posted at 7:16pm on Monday, February 14th, 2011 |
USEFUL! It's spelt USEFUL! |
Amit | Posted at 1:53am on Wednesday, February 16th, 2011 |
This online Regex testing tool is really helpful.
It would be great if the input field length is increased. |
Amit | Posted at 1:54am on Wednesday, February 16th, 2011 |
This online Regex testing tool is really helpful.
It would be great if the input field length is increased. |
Anonymous | Posted at 4:38am on Wednesday, February 16th, 2011 |
Total RX Bytes: 1993.97 MB, Total TX Bytes: 2961.07 MBAverage Traffic: 123.39 kB/s (1.0%) in, 127.31 kB/s (1.0%) out
hi which regex can i use to exract the digits 123.39 and 127.31 in the above statement |
Leo | Posted at 9:22am on Monday, April 25th, 2011 |
I have a regex ^[0-9a-z "+,-./;[]`]{0,32}$. Input "test" matches with it on this Tutor but when I use regexec() it says NO MATCH. Any clue? |
Leo | Posted at 9:39am on Monday, April 25th, 2011 |
Ah there is a '' before the first closing square bracket ']'. The '' got filtered. |
Leo | Posted at 9:40am on Monday, April 25th, 2011 |
ok trying again. There is a '\' before the first closing square bracket ']'. The '\' got filtered. |
ghdstraightener01 | Posted at 2:02am on Wednesday, May 4th, 2011 |
How do I validate the 'regular expression' itself before using it? I have an application that allows users to enter regular expressions to 'mask' data and it blows up if they enter an invalid regular expression. Would like to check the regex first for validity to?????????
Ghd Straighteners sales
GHD Black Straighteners |
almost crazy | Posted at 1:33am on Tuesday, June 28th, 2011 |
/^s*([^s=]+)s*=s*"((\"|[^"])*)"/ anybody know what is this ? |
RicoRicardoRayRayGenevaBeverlySanMarkoPa | Posted at 11:06am on Thursday, July 7th, 2011 |
Es Fantastico! |
Charlweed Hymerfan | Posted at 9:44pm on Friday, July 8th, 2011 |
Does your tool generate symbolic named groups? I dont know python, but I am trying to parse
"tb-2099 California microbial life (john adams) 1999"
with an expression like
(.*ds)(.*)s((?P.*))s(d*).*
It seems like it should work, but the tool on this page shoes nothing. |
TravisEtta | Posted at 3:17am on Sunday, September 11th, 2011 |
Buildings are quite expensive and not everyone is able to buy it. However, personal loans are invented to aid different people in such cases. |
Anonymous | Posted at 9:46pm on Tuesday, September 20th, 2011 |
useful |
Fernando | Posted at 10:00am on Monday, October 24th, 2011 |
Thank you! Very useful. |
Geoff | Posted at 8:15am on Tuesday, November 1st, 2011 |
Beautiful work...helped me to solve a tricky regex capture issue. Please keep this site up! |
Paul | Posted at 1:52am on Thursday, January 5th, 2012 |
Why does regex "ORA-*" retrieve "ORA" from "ORA_SBT" and why regex "ORA-*" doesn't change anything?
Thanks |
Paul | Posted at 1:57am on Thursday, January 5th, 2012 |
Correction!
Why does regex "ORA-*" retrieve "ORA" from "ORA_SBT" and why a "" before the "-" doesn't change anything?
Thanks |
Paul | Posted at 1:58am on Thursday, January 5th, 2012 |
This site doesn't like the backslash!
A new try!
Why does regex "ORA-*" retrieve "ORA" from "ORA_SBT" and why does "backslash" before the "-" change anything?
Thanks |
Anonymous | Posted at 2:24pm on Monday, January 9th, 2012 |
How can I add a tab charaacter to the input? |
Anonymous | Posted at 2:25pm on Monday, January 9th, 2012 |
How can I add a tab charaacter to the input? |
Timetraps | Posted at 11:33am on Tuesday, January 24th, 2012 |
To add a tab character to the output, open notepad and press tab. Copy the tab whitespace and paste into into the input box above. |
Brian | Posted at 9:45am on Tuesday, January 31st, 2012 |
This is a fantastic tutorial tool! Thanks for Building this! Not sure if this is 100% accurate, but here goes: Goal is to get the "value" in the "last" [] set, but NOT include the brackets.
Input: [foo] [bar] [1] [2] [3]
Regex: [(d+)]$
Your test system works wonderfully! |
jonnnnny | Posted at 11:37am on Friday, March 23rd, 2012 |
how to find a successive occurrence?
for example in the string WinWinWinWinAAAAAWinWin
what if i want to find the third Win occurrence and not the first?
Example RegEx= Win
String Win Win Win Win
I want this one in brackets:
Win Win "Win" Win |
jonnnnny | Posted at 11:37am on Friday, March 23rd, 2012 |
how to find a successive occurrence?
for example in the string WinWinWinWinAAAAAWinWin
what if i want to find the third Win occurrence and not the first?
Example RegEx= Win
String Win Win Win Win
I want this one in brackets:
Win Win "Win" Win |
good | Posted at 4:25am on Saturday, April 21st, 2012 |
super |
turab | Posted at 8:18pm on Wednesday, May 2nd, 2012 |
great tool.. |
Abdul Aleem Akhund | Posted at 6:55am on Monday, May 7th, 2012 |
An awesome tool, it helped alot. thankyou |
Ront | Posted at 1:34pm on Wednesday, May 30th, 2012 |
Very useful tool, thanks! |
Leopoldino Oliveira | Posted at 5:05am on Thursday, June 28th, 2012 |
Useful up to now |
Sunit | Posted at 2:12pm on Thursday, July 12th, 2012 |
I approve! This is just what I needed. |
Anonymous | Posted at 9:50am on Thursday, July 19th, 2012 |
good tool |
carlos | Posted at 12:12pm on Thursday, August 16th, 2012 |
great tool |
Mohamed | Posted at 3:02pm on Monday, August 20th, 2012 |
I'm still struggling with a few, but DA if you're lientsing, a quick thankyou for apparently giving us a week off the excessive dependence on general knowledge that I've been complaining about. There's a lot of satisfying clues here, even though I needed help with many of them.I agree with RB about 11A Despite the fact that I missed it !! That darn lav-ender exemplifies the satisfaction I get when finally understanding a cryptic clue. I had a chance of soving it in my head, with the information available. The fact I missed it, only makes me want to try harder next week.Contrast that with the deflated sense of, Oh, it's another Geography/Art/History lesson with a twist that I get when I discover that I never had a chance anyway, because I never heard of some Dutch artist named Bosch. Too many of those and there's no incentive to come back next week, because it's not something I can try harder at, and why bother with a crossword that requires more luck than skill/sweat to solve especially if it's meant to be a cryptic?But I'm chuffed because by myself I solved about 50% this week (don't laugh that's good for me!)Having done the weekly DAtrippers check-in I now know another 30-40% I could have solved given enough tenacity.Which leaves only 10%-20% as new words which seems a reasonable amount expanding my vocabulary without leaving me feeling defeated.So my vote is to keep the balance of future ones just like this one!! |
shnxkgyz | Posted at 2:10am on Tuesday, August 21st, 2012 |
J7RMAW fddeokngfafi |
aexllcvju | Posted at 2:29pm on Thursday, August 23rd, 2012 |
N26H5a rkytqlaokjzr |
Raju | Posted at 4:48am on Friday, August 24th, 2012 |
this like but already we get this option in PDK |
Raju | Posted at 4:48am on Friday, August 24th, 2012 |
this like but already we get this option in PDK |
Anonymous | Posted at 6:07am on Friday, August 24th, 2012 |
test |
Bob | Posted at 6:29am on Thursday, August 30th, 2012 |
Elegant and well designed regex simulator for Perl I have ever come across. |
Jesper | Posted at 9:58am on Sunday, September 2nd, 2012 |
It would be the ultimate regex tester, if it was running continuously (on each Regex or Input change). |
Anonymous | Posted at 1:46pm on Wednesday, September 5th, 2012 |
God dag!
Vi söker folk till nya tjänster av textredaktör och översättare (svenska,engelska) till ett välkänd bolag.
Uppgifter:
Vi skickar till dig meil med texter, huvudskaligen texter för att korrigera stavning, grammatik och andra fel.
Under provtid får du arvode på 5 euro för 1 kb för utfört jobb.
Efter att ha testat dina kunskap och förstås beroende på arbetsvolum kan ditt arvode vara cirka 3000- 3500 euro per månad.
Till arbetet behövs: en mobiltelefon, internetkoppling, e-post,
bankkonto ( för arvodeöverföring) och förstås dina kunskap och arbetsförmåga.
Arbetsvillkor:
- Halvtids arbete
- Varierade arbetstid
- Ett hygglig arvode. Betalas varje 2 veckor till ditt bankkonto
- Karriärmöjligheter
För mer detaljerad information om bolaget och dessa tjänster fyll i följande registreringsformulär:
1. Efternamn och namn
2. Ditt ålder
3. Land
4. Kontakttelefon
5. E-post
6. Bilaga CV till detta brev
Skicka den till vår e-postadressen: Anthony@swejob.com,och kontrollera e-postadressen som du skickar
(Använd inte knappen SVARA för att skicka ett meddelande till oss).
Efter att vi får din registreringsform ulär tar vi kontakt med dig och skickar ytterligare information.
Lycka till! |
k | Posted at 1:26pm on Wednesday, September 26th, 2012 |
years later, this simple tutorial is still relevant.
minor improvement
^/(d+)/([dw]+)*/*
run on /6/e/ matches with 6 and e as expected, with proper highlighting
run on /6/ it matches 6 as expected and displayed in thhe legend below, but while the result has 6 in bold, 6 is not highlighted |
georgeyang | Posted at 12:01am on Wednesday, October 10th, 2012 |
test perl regex |
Tom Browder | Posted at 3:55am on Wednesday, October 17th, 2012 |
Excellent tool--it helps make the documentation clear, and it really helps with the specific task at hand. Thanks so much! |
chris | Posted at 9:23am on Wednesday, November 7th, 2012 |
how do you work this? Im trying to find out what /[0-9]+[aeiou]*/ means? I have a list of regex that i need to find matchs to. but im not sure what to put in the INPUT box. |
JohnJ | Posted at 12:43pm on Tuesday, November 13th, 2012 |
why does [A-Za-z -@]+ match the following including the parens
Hello (MMDD)
tx in advance
JohnJ |
Ankit | Posted at 2:20pm on Wednesday, November 21st, 2012 |
Input: "check ---------------------ooga booganote 2----h"
Regex: "-(.*?)$"
I am expecting "h" instead it gives "ooga⋅booganote⋅2----h"
How can I solve this? |
Anonymous | Posted at 7:50pm on Wednesday, December 5th, 2012 |
http://www.pembururupiah.com/?id=santoanasrullah |
santoanasrullah | Posted at 8:03pm on Wednesday, December 5th, 2012 |
http://www.pembururupiah.com/?id=santoanarullah |
Anonymous | Posted at 11:32am on Monday, December 31st, 2012 |
sosooooo123456 |
erw | Posted at 11:33am on Monday, December 31st, 2012 |
sosooooo123456 |
santo | Posted at 8:45pm on Sunday, February 17th, 2013 |
|
Sumit Gera | Posted at 4:34am on Thursday, February 21st, 2013 |
Awesome tool. |
Anonymous | Posted at 4:02am on Tuesday, March 5th, 2013 |
טשקך |
Anonymous | Posted at 11:04pm on Monday, March 18th, 2013 |
This tool is really helpful. Solved many of my Reg-ex Errors |
Anonymous | Posted at 5:42am on Monday, April 1st, 2013 |
very nice tool. very useful |
Anonymous | Posted at 5:42am on Monday, April 1st, 2013 |
very nice tool. very useful |
Anonymous | Posted at 5:42am on Monday, April 1st, 2013 |
very nice tool. very useful |
jiang | Posted at 11:58pm on Wednesday, April 17th, 2013 |
嘿嘿 |
Anonymous | Posted at 12:36am on Thursday, April 18th, 2013 |
Hi, trying to match up a date, can you see a problem? Sorry, desperate.
--- Regex: (/(w{3})s+(w{3})s+(d+)s+(d+):(d+):(d+)s+GMTs+(2013)/)
---- Input: Tue Mar 19 05:00:02 GMT 2013 Wed Mar 20 05:00:02 GMT 2013 |
Anonymous | Posted at 12:36am on Thursday, April 18th, 2013 |
Hi, trying to match up a date, can you see a problem? Sorry, desperate.
--- Regex: (/(w{3})s+(w{3})s+(d+)s+(d+):(d+):(d+)s+GMTs+(2013)/)
---- Input: Tue Mar 19 05:00:02 GMT 2013 Wed Mar 20 05:00:02 GMT 2013 |
Oli | Posted at 12:41am on Thursday, April 18th, 2013 |
Hi, trying to match up a date, can you see a problem? Sorry, desperate.
--- Regex: (/(w{3})s+(w{3})s+(d+)s+(d+):(d+):(d+)s+GMTs+(2013)/)
---- Input: Tue Mar 19 05:00:02 GMT 2013 Wed Mar 20 05:00:02 GMT 2013 |
jp | Posted at 5:27am on Monday, April 22nd, 2013 |
check md5sum |
Comments to date: 119.