• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. what is the difference between 'rex' and 'pcre' SKILL regex...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 1496
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what is the difference between 'rex' and 'pcre' SKILL regex functions ?

Manikk0501
Manikk0501 over 8 years ago

Hello experts,

I have a basic doubt regarding regex functions in SKILL. There are two set of functions which has suffix 'rex' & 'pcre'. I understand pcre stands for perl compatible regular expression. If someone explain it providing a small example, it will be very useful to understand it.

Thanks and Regards,

Manikandan Kuzandhaivelu

  • Cancel
  • skillUser
    skillUser over 8 years ago

    Hi Manikandan,

    Did you do *any* research before posting, like looking in the SKILL documentation for example?

    The documentation notes the following (in Pattern Matching Functions) for the "rex" functions (e.g. rexMatchp, rexMatchList ...):

    
    c  Any ordinary character (not a special character listed below) matches itself.
    .  A dot matches any single character
    \  A backslash when followed by a special character matches that character literally. When followed by one of <, >, (, ), and 1,…,9, it has a special meaning as described below.
    […]  A nonempty string of characters enclosed in square brackets (called a set) matches one of the characters in the set. If the first character in the set is ^, it matches a character not in the set. A shorthand S-E is used to specify a set of characters S up to E, inclusive. The special characters ] and - have no special meaning if they appear as the first character in a set.
    *  A regular expression in the above form, followed by the closure character * matches zero or more occurrences of that form.
    ...

    There's more, but not much in comparison to the full regular expression capabilities of the pcre* functions. Hopefully the above gives you some idea of the difference, but maybe also where to look to get a fuller picture.

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information