Better HN
topnewbestaskshowjobs
Log inSign up

Lindrian

323 karma · joined Aug 21, 2012 (14y ago) · 52 submissions

Submissions

comment 4y ago · link · parent

regex101 has a few more distinguishing features:

- more flavor support,

- a regex debugger,

- code generator, with support for a lot of languages,

- a complete quick reference with examples,

- an extensive regex library,

- a regex quiz for "golfing" and learning purposes,

Perhaps, most importantly, it runs entirely client side and does not submit any information to the server unless you hit save (which returns a delete link to remove all data). You can even run the website and (most) of its features offline.

Regexr submits all input to the server for processing.

But, I'm biased, since I wrote regex101 :)

comment 8y ago · link · parent

Typically not. Sometimes they are tagged as nominal mentions.

comment 8y ago · link · parent

Don't agree. LSTM is a very good option for NER. I have personally experimented with simple FFNN and language models to accommodate variable width input and achieved very good results. I will be publishing a paper on this soon.

The system in the article fails at quite simple sentences, such as:

"Rex Tillerson is the secretary of state."

It tags "Rex Tillerson" as ORG instead of PER. If you change "is" to "was" it tags it as PER.

comment 11y ago · link · parent

The unit testing feature is located in the menu on the left, under the submenu "TOOLS" (the checkbox icon).

5.

Unit testing for regex regex101.com – thoughts?(regex101.com ↗)

1 points · by Lindrian · 11y ago · 1 comment

6.

A new version of RegEx101 has been released, feedback much appreciated(regex101.com ↗)

1 points · by Lindrian · 12y ago · discuss

comment 13y ago · link · parent

I posted this last night but was told it was incorrect format so I'm giving it another try. Hope this is alright! Please enjoy the site and any feedback is appreciated.

8.

Show HN: my improved regex testing and debugging service, regex101(regex101.com ↗)

3 points · by Lindrian · 13y ago · 1 comment

9.

I have completely recoded my regex testing service. What do you think?(regex101.com ↗)

1 points · by Lindrian · 13y ago · 1 comment

comment 13y ago · link · parent

Hello

I'm the creator. PCRE offers a neat feature to limit backtracking, Python does not. I still havent found a decent solution to this issue.

Javascript is run in your own browser so you'll only be screwing yourself there :p

comment 13y ago · link · parent

I think this shows quite clearly what is going on and why I get the result I get: http://regex101.com/r/kU3cJ6/#debugger (imgur link: http://imgur.com/H2IkNGy)

If you don't agree with me, could you perhaps suggest an improvement?

comment 13y ago · link · parent

I have thought about this, but in cases where it would be useful, it's impossible to generate a sample match string. For example, creating a match string for /(?:a|[bc])efg?/ is super simple, but for something like: /(ab(?1)*)/ it becomes much harder. Not to mention the performance hit you would see for these more complex expressions. (These are just dummy expressions for illustrative purposes, but I'm sure you get my gist.)

comment 13y ago · link · parent

Forgot to tell you how to use it. Simply insert an expression and some text and press the little red button right above the input for the regex. That's all you have to do! Enjoy :)

14.

RegEx101.com now offers a debugger(regex101.com ↗)

155 points · by Lindrian · 13y ago · 30 comments

comment 13y ago · link · parent

You could always comment the regex. My website provides a full and accurate explanation, step by step, of almost any given regex. Have a look here: http://regex101.com/r/dG4lP3

comment 13y ago · link · parent

Not sure if im understanding you correctly but the site does show the content of all capture groups: http://regex101.com/r/nB1bR1

comment 13y ago · link · parent

You mean the fact that it doesnt show matches instantly?

comment 13y ago · link · parent

You're right.

I managed to mess up some entries of the database, thats why you see some ungodly stuff like 11b email validation. I'll patch it up.

comment 13y ago · link · parent

Hmm, I don't want users to see shorter answers and then modifying their own to get the same length or even shorter (since they didnt do the real work). What about something like being able to see the shortest answer, but after that you are no longer allowed to modify your pattern? Feel free to pitch in if you have an idea of a neat way to do it.

comment 13y ago · link · parent

I don't think the problem is the click event sending you to the top of the page, its the fact that the textarea is out of sight and its being modified. The browser will then focus it for you, which scrolls you up. Only way I can think of to solve this would be to make sure the textarea is always visible (even if not for the user), which is more work than its worth I'm afraid.

comment 13y ago · link · parent

Hmm, the explanation part does part of what you're asking. However, I don't know of any straight forward documentation that I can link to that will explain each and every one of these tokens. I have just read through pcre.txt many times and implemented stuff from there. If you know a source I can use I will look into it.

comment 13y ago · link · parent

Thats a great idea! I'll work something out.

comment 13y ago · link · parent

Glad you like the design :). Hmm, something like "Regex library" maybe? Unsure of how to word it properly.

comment 13y ago · link · parent

I'm not sure I agree it should be default; it's not expected behavior. Either way, there are too many flags to add them all to the quickref, I figured I would just show the most common.

comment 13y ago · link · parent

In the about page I mention what version of PCRE is running, and from there you can get to: http://www.pcre.org/pcre.txt

comment 13y ago · link · parent

No its not but feel free to send me an email on contact@regex101.com so we can talk privately :)

comment 13y ago · link · parent

Do you mean its not explained correctly or its not in the quickref? Its not enabled by default because it changes the behavior of many things, for example what \d and \w match. The user has to decide for himself what flags to use.
12