Issue #322
Multiple RegEx matches in Instance Name as part of AUTO_TEMPLATE
| Status: | Closed | Start date: | 01/31/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Wilson Snyder | % Done: | 0% |
|
| Category: | Autos | |||
| Target version: | - |
Description
Hello:
This is not an issue, but a question or RFE.
Regarding your description below: When using multiple layers of parenthesis, is there a way I can use (or some other variable) to replace any of those regular expression matches. For e.g. Say [1] will result in \([0-9]+\) match.
"If you use multiple layers of parenthesis, "test\([^0-9]+\)_\([0-9]+\)" would replace with non-number characters after test and before _, whereas "\(test\([a-z]+\)_\([0-9]+\)\)" would replace with the entire match."
History
Updated by Karthikeyan Avudaiyappan over 2 years ago
Somehow "AT" sign is not appearing in my report. I meant AT1, where it appears [1].
Updated by Wilson Snyder over 2 years ago
- Status changed from New to Assigned
- Assignee changed from Michael McNamara to Wilson Snyder
Forums are the best places for questions as others will then see them if they have similar issues.
Anyhow, I'm not sure I understood your question, but think you're just looking for \1 (backslash 1) which is the first match, \2 does the second sets of parenthesis, etc, etc. If I didn't understand please give an example of what you want to accomplish.
Updated by Wilson Snyder over 1 year ago
- Status changed from Assigned to Closed
Closing, question was answered.
Also available in: Atom
![[logo]](/img/veripool_small.png)