Can't you instead just pattern match the string against "" or [] (they are equal)? Using regular expressions for so simple patterns is really overkill.<br><br>Robert<br><br>P.S. Yes that is probably a bug.<br>
<br><div class="gmail_quote">2009/2/24 Vik Olliver <span dir="ltr"><<a href="mailto:vik@catalyst.net.nz">vik@catalyst.net.nz</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to spot a parameter that is an empty string. The weapon of<br>
choice is regexp:first_match/2 which is used in the code that parses the<br>
config file.<br>
<br>
In other worlds, "^$" matches an empty string. In Erlang, not so:<br>
<br>
5> regexp:first_match("","^$").<br>
nomatch<br>
<br>
<br>
What do I use instead?<br>
<br>
Vik :v)<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>