in reply to A Question on Regex
Maybe try:
/\$fwrite[^;]+;$/iThat way you're being specific about what you want to see come at the end of the line, and what is not permitted to come earlier.
But I have to admit to not being 100% clear on your spec with respect to such issues as whether newlines are permitted mid-statement, and what keyword you're really using: $fwrite, $display, or something else. Your example statement might be missing a '$' on the second 'fwrite', and those sorts of things make it hard to know for sure what is needed.
Dave
|
|---|