Thread overview | |||||
---|---|---|---|---|---|
|
November 22, 2013 regex in tango.text.Util.containsPattern | ||||
---|---|---|---|---|
| ||||
How do i find strings in form of XYYYY... (in regex: X{Y*} using tango.text.Util.containsPattern ? the documentation does not mention regex. So i have a string where multiple substrngs in the format X{Y*} can appear, and I would like to identify all of them, iteratively |
November 24, 2013 Re: regex in tango.text.Util.containsPattern | ||||
---|---|---|---|---|
| ||||
Posted in reply to seany | On 2013-11-22 21:03, seany wrote: > How do i find strings in form of XYYYY... (in regex: X{Y*} using > tango.text.Util.containsPattern ? the documentation does not mention > regex. > > So i have a string where multiple substrngs in the format X{Y*} can > appear, and I would like to identify all of them, iteratively That function is for finding a string or array inside another array. It's not for regular expression. For regular expression you want tango.text.Regex or if you're using D2 then std.regex would be a better choice. -- /Jacob Carlborg |
November 24, 2013 Re: regex in tango.text.Util.containsPattern | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | ah! thank you soo much |
Copyright © 1999-2021 by the D Language Foundation