Half a croissant, on a plate, with a sign in front of it saying '50c'
h a l f b a k e r y
You want a piece of this?

idea: add, search, annotate, link, view, overview, recent, by name, best, random

meta: news, help, about, links, report a problem

account: browse anonymously, or get an account and write.

user:
pass:
register,


       

Readable Regexp

Readable Regular Expression parser and WYSIWYG tool
  (+1, -4)
(+1, -4)
  [vote for,
against]

Instead of strings like " .*(?=\.)"
Lets have:

matchCriteria:
..... str from source
..... where
..... str startswith Text.Anything
# until one before period
..... until (source endswith Chars.Period) - 1

Possibly a markup language (RegXML) that will store RegExp information for SOA messaging.

And a search tool for the desktop and for the web, with a WYSIWYG regexp editor that works as follows on any text:

a. Load sample or text to search.

b. Mouse over and mark the words or "sections" you are intending to search for inside the text.

c. As you mark, each section is given its definitions: if its from the beginning or till the end of a word it will give the possible [b]Word (starting/ending/exactly) with markedword[b].

d. When standing on a section, you can mark it as being a "formatted text" or other. (if the section has slashes, hyphens and periods etc, it will suggest this automatically).

e. Famous formats can be chosen and automatically detected.

For example: Search for format of date: where day is: (any/between/less than) etc.

f. Didn't think out the REPLACE functionality yet.

pashute, Jul 22 2009

[link]






       We have a natural language to regex convertor in the office. It's a person.   

       Whenever I have to create a regex (not very often) I just ask. It's usually quite scary because the answer comes back in less than a minute.
DenholmRicshaw, Jul 22 2009
  

       Regular expressions in the perl5 programming language have options to that allow programmers to write verbose and comprehensible regular expressions.   

       Specifically, when the "/x" option is turned on, unescaped whitespace is ignored (so you can use spaces and newlines to seperate logically seperate parts of the regexp, and perl will ignore them while compiling the expression), and one can include comments (from a "#" symbol to the end of a line is a comment).   

         

       As for a WYSIWYG regexp editor... maybe you should split that idea off to a seperate idea.
goldbb, Jul 23 2009
  

       I dont really understand why the fishbones. One funny anno about people in the office. One about not needing regexp all that much (I suspect because its not intuitive! If it would be, it would be used in all search engines) And one saying that you can add remarks in pearl.
pashute, Aug 05 2009
  
      
[annotate]
  


 

back: main index

business  computer  culture  fashion  food  halfbakery  home  other  product  public  science  sport  vehicle