# \#regular-expressions

**URL:** https://verificationacademy.com/forums/tag/regular-expressions/6184.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Use of regular expression for string comparison](https://verificationacademy.com/forums/t/use-of-regular-expression-for-string-comparison/35524)

<div class="topic-metadata">

**Author:** [@mayurkubavat](https://verificationacademy.com/forums/u/mayurkubavat)\
**Replies:** 9\
**Last updated:** [May 19, 2021, 8:22am UTC](https://verificationacademy.com/forums/t/use-of-regular-expression-for-string-comparison/35524 "2021-05-19T08:22:50Z")

</div>

How to compare string with regular expression using SV/UVM constructs? I tried to use uvm\_re\_match(re, string) function but it did not work. Below code snippet always gives mismatch without uvm\_glob\_to\_re() and always ma…

---

## [Use regular expression in systemverilog to remove "anything start with some predefined letter "](https://verificationacademy.com/forums/t/use-regular-expression-in-systemverilog-to-remove-anything-start-with-some-predefined-letter/37660)

<div class="topic-metadata">

**Author:** [@AlokMandal](https://verificationacademy.com/forums/u/AlokMandal)\
**Replies:** 1\
**Last updated:** [June 2, 2020, 4:52pm UTC](https://verificationacademy.com/forums/t/use-regular-expression-in-systemverilog-to-remove-anything-start-with-some-predefined-letter/37660 "2020-06-02T16:52:40Z")

</div>

Hi everyone, i have one queue of string, i want to remove "anything which start with UVM ". for example UVM\_VERBOSITY,UVM\_TESTNAME etc. i know how to do it using perl because it supports regular expression very well. b…

---

## [System veilog Regular expressions](https://verificationacademy.com/forums/t/system-veilog-regular-expressions/33277)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 1\
**Last updated:** [July 6, 2017, 3:11pm UTC](https://verificationacademy.com/forums/t/system-veilog-regular-expressions/33277 "2017-07-06T15:11:00Z")

</div>

I understood that System verilog does not have very good regular expression support inbuilt. How can I check in systemVerilog that a srting matches to the following regular expressions: “\\d+(ns|ps|us)”
