Euphoria Ticket #487: Remove wildcard:new()

The idea behind the method seems to be easy conversion to using regular expressions, but let's say I use the new() method and plan for possible use of regular expressions.

include std/wildcard.e 
sequence expr = wildcard:new("ABC*") 
? wildcard:is_match(expr, "John Doe") 

To convert to Regular Expression, you need to add an include, change the variable type, change the namespace and update the pattern (they are incompatible).

include std/regex.e 
regex expr = regex:new("ABC.*") 
? regex:is_match(expr, "John Doe") 

and that is if you want to simply do a is_match w/the same type of pattern. Chances are you are changing to regex to do more advanced matches and possibly new methods.

Details

Type: Bug Report Severity: Normal Category: Library Routine
Assigned To: jeremy Status: Fixed Reported Release: 4472
Fixed in SVN #: 4480 View VCS: 4480 Milestone: 4.0.0RC2

1. Comment by jeremy Dec 03, 2010

Removed

Search



Quick Links

User menu

Not signed in.

Misc Menu