<div dir="ltr"><div><div><div>I think you're looking for ".*":<br></div><br>> (regexp-match "a.*e" "zaijklez")<br>("aijkle")<br><br></div>See:<br><a href="http://docs.racket-lang.org/guide/regexp.html">docs.racket-lang.org/guide/regexp.html</a><br>
<br></div>Laurent<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 6:06 PM, Don Green <span dir="ltr"><<a href="mailto:infodeveloperdon@gmail.com" target="_blank">infodeveloperdon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
        
        
        
        
<p style="margin-bottom:0in">Is there a symbol in regexp-match syntax, similar to the period but... a representation for all the characters to one side of the pattern?</p><p style="margin-bottom:0in">For example, the period below represents the pattern and a single character to the right of the pattern 'x':<br>
</p><p style="margin-bottom:0in">(regexp-match #rx"x."
"12x4x6") ; => '("x4")</p><p style="margin-bottom:0in"><br></p><p style="margin-bottom:0in">The ___ below represents the pattern and all the remaining characters in the string to the right of the pattern 'x':</p>
<p style="margin-bottom:0in">(regexp-match #rx"x___"
"12x4x6") ; => '("x4x6")</p><p style="margin-bottom:0in"><br></p><p style="margin-bottom:0in">I realize I could place a period for each character I want matched but the number of characters will vary. I imagine there might be a better way than creating a function that counts the number of characters and then another function that creates a regexp-match expression and another function that runs that function.<br>
</p><p style="margin-bottom:0in">Thanks for the advice.</p><span class="HOEnZb"><font color="#888888"><p style="margin-bottom:0in">Don Green<br></p><p style="margin-bottom:0in"><br></p><p style="margin-bottom:0in"><br></p>
</font></span></div>
<br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>