Jump to content

Case structures and regular expressions.


Recommended Posts

I think it would be beneficial to have case structures able to select a case based on matching of a regular expression when a string is wired to the switching terminal.

Right now, they can accept ranges of values for one case... i.e. "a...c" will accept any character from a-b. It would be neat to be able to type in something like "foo*, *bar" and have it accept things like "foo, foobar, foo bar, lowbar, low bar" etc.

Link to comment
  • 4 months later...
I think it would be beneficial to have case structures able to select a case based on matching of a regular expression when a string is wired to the switching terminal.

Right now, they can accept ranges of values for one case... i.e. "a...c" will accept any character from a-b.  It would be neat to be able to type in something like "foo*, *bar" and have it accept things like "foo, foobar, foo bar, lowbar, low bar" etc.

837[/snapback]

Great idea! Especially considering the fact that other text based languages have this ability!

Link to comment
  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.