Regular expression to English [closed] - regex

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Given a regular expression, is there a library or webservice which will give the human/non-programmer an English description?
For example, .+ => one or more characters

There is an excellent site called http://regex101.com that does exactly that, as well. It also provides access to different regex engines, allows you to save and debug your regexes and test strings...very nice.

I don't know about a website, but RegexBuddy will do that for you.

I'm a big fan of RegExr. Similar to regex101, but has more features and a nicer interface in my opinion.

This is an old question, but I was looking for something like this myself a few minutes ago, so here is the solution I found with a quick Google search.
http://www.myezapp.com/apps/dev/regexp/show.ws
The explanation is a little terse, but worked well enough for my needs.
Here in a link to a screenshot (not enough reputation to post images).
Screenshot of a simple regex example
I tried Tim Peitzcker's suggested regex101.com, but liked the simple format of this site better.

Regex Coach can do this, though it is a desktop app rather than something callable http://weitz.de/regex-coach/

Related

Regular expressions converting into a diagram [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there any software to convert a regular expression into a diagram to show the finite state machine will work. I find it helpful to have things pictorial to aid in bug fixing and ensuring that the regular expression is correct.
I really like http://www.regexper.com/ which looks like it uses Parcon.
Example (live link):
You should try RegexBuddy - IMHO it's best tool for regexp creation, validation, advanced visualisation and debugging. Also it has the unique ability to emulate the features and limitations of all the popular regular expression flavors, like PCRE, Perl, JavaScript, Java and etc.
If you don't mind using eclipse... http://crotonresearch.com/graphrex/
I ran a google search for "regex visualization" graphvis, and I found this:
http://osteele.com/archives/2006/02/reanimator
The tool is web based. I was actually hoping that I might be able to find a command line tool, because that would be easier to script. Nonetheless, the implementation seems to be well documented, and might serve as a starting point for other tools.
There used to be a good online tool for this at http://www.strfriend.com. Unfortunately, it appears to be currently unavailable.

What's a good Wordpress extension for coloring C/C++/script code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
My research group uses a Wordpress blog. Frequently I want post snippets or even entire short programs I've been working on to it, with most of my code being written in C/C++ or scripting languages (Bash, TCL, etc).
I figure that there have to be some good extensions to Wordpress to colorify code since so many people use it. I'm looking for something similar to StackOverflow's colorizing system, though I realize it may not be quite as robust!
Can you point me to some of your favorites/the ones you think are most reliable?
Thanks in advance!
This was the first I investigated when I started a Wordpress blog. You can use Wordpress' sourcecode shortcode, as exemplified here. It requires JavaScript on the client side (otherwise it renders as just preformatted text).
Cheers & hth.,
GeSHi is a good backend for highlighting lots of different languages. There are Wordpress plugins that support it, but I don't have a specific recommendation. (I use GeSHi for our wiki.)
You might also consider Pastie or Gist as a way to share snippets.

Is there a free tool that is like a regexp wizard? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Does there exist a free Windows software program that will help you generate regular expressions using a wizard?
I'm not exactly sure what I am looking for but I am not looking for a regexp evaluator. What I need is a calculator/wizard to help me learn how reg expressions work, while not knowing all the syntax details (until i have the experience of course).
Expresso is a good free tool. It just needs email registration, but it's free. The developer of that tool also wrote The 30 Minute Regex Tutorial which you can use to follow along. It's included in the help file of Expresso.
RegexBuddy is not free, but seems to have a helpful UI and a cool debugger. Take a look at the demos.
gSkinner has a good online tool which has a desktop version too.
The Regex Coach won't quite do what you want, but it does have an info panel that explains your regex in plain English and it shows you when you've got a match in your test string.
A tool is handy for testing purposes, but if your ultimate goal is to actually learn regex, get Mastering Regular Expressions: the book w.r.t. regex-es.
A good on-line resource is regular-expressions.info.
Expresso is just the best for me and it's free.....
ReguLazy is a neat idea for this sort of thing. It's a pretty simple way to build and test a regex.

What is a good regular expression tester for OS X? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm looking for a GUI based RegExp tester in the vein of rubular.com, or this JavaScript expression tester here, for OS X, to help me when writing regular expressions.
It would be really handy for it to work in more than one language (i.e. Python, JavaScript, or Ruby).
Other than using MacVim's own find as you type tool, or a command line editor like Vim or Emacs, (I use Textmate as my main editor), what are my options here?
(source: reggyapp.com)
give Reggy a try! ...simple and effective!
NOTE: Though the last 1.3 release of the app is quite old (2007), a new version written in Objective-c is under development on Github
Maybe you can just use one of the online RegExp testers, like "RegExr".
I've found a nice Regexp tester for JavaScript at http://robrohan.com/projects/widgets/, which is available as a widget for OS X, and is even nice enough to give you numbered captures, something that's quite rare amongst RegExp testers.
However, to buy it you need to send some unspecified amount of money via paypal for it - I flipped a dollar in, partly because I didn't know whether it would be any good, and it turns out to be pretty nice.
My favorite WebApp to test for regular expressions is RegExr.
But this was not the question ;)
So, if you really need an app, take a look at RegExhibit from Roger Jolly. It's quite simple and gives you the ability to find, replace and split.
By the way, RegExhibit is free an open-source!
I've used and liked JRegExpTester:
http://jregexptester.sourceforge.net/
It's in Java and only does Java regexes, unfortunately.
There's also a handy FF plugin:
http://sebastianzartner.de/firefoxExtensions/RExT/
I realize this question is quite old, but...
I prefer to download/buy from the App Store. So I spent the $2.99 and gave Patterns a try. There are a few other good looking RegEx GUI applications on the App Store, but all of them are double the price and offer little to no extra functionality.
You should check out iRegEx. It's the fastest, leanest, and it has the best UI. And it's the cheapest too. It only needs a decent icon… ;)

Are there any good open source BDD tools for C/C++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I love the Ruby RSpec BDD development style. Are there any good tools for doing this with C/C++?
cspec is for C. Presumably it will work with C++. There is a list of tools for various languages on the Behavior Driven Development Wikipedia page.
It seems you can test your C code using Ruby and RSpec using swig to generate wrappers! See Ben Mabey's post here:
http://benmabey.com/2007/09/09/bdd-your-c.html
I've tried that example out and it worked for me. I'm not sure if anyone has taken it any further.
The original link (CppSpec) is dead, but it is still accessible at the Internet Archive at CppSpec.
And as #VickyChijwani already mentioned, there's a copy of the project at Github - tpuronen/cppspec
Igloo is one I'm looking forward to try some time
Since an RSpec like framework was requested, I'd like to add the recent igloo.
Though originally aiming at Context/Spec syntax, it also supports Describe/It syntax. There isn't much noise in setting the test runner and test fixtures up like in those C-based frameworks. It even feels better to look at than CppSpec. They achieve this through use of decent templating mechanics.
Try CBehave! It is an RSpec-like BDD framework that uses given/when/then macros. Example:
FEATURE(1, "strstr")
SCENARIO("The strstr finds the first occurrence of the substring in the source string")
GIVEN("A source string: [Lionel Messi is a great football player]")
char *str = "Lionel Messi is a great football player";
GIVEN_END
WHEN("we use strstr to find the first occurrence of [football]")
char *p = strstr(str, "football");
WHEN_END
THEN("We should get the string: [football player]")
SHOULD_STR_EQUAL(p, "football player");
THEN_END
SCENARIO_END
FEATURE_END