Extracting a substring using regular expression matching - IBM
文章推薦指數: 80 %
You can use regular expression matching to retrieve a single substring or all substrings from a string. To extract a single substring, you use the RExtract ... IBMTivoliNetcool/Impact,Version6.1.0.4. Extractingasubstringusingregularexpressionmatching Youcanuseregularexpressionmatchingtoretrieveasingle substringorallsubstringsfromastring. Toextractasinglesubstring,youusetheRExtractfunction. TheRExtractfunctiontakesastringandaregular expressionspatternasinputparameters.Itreturnsthefirstmatching substringthatitfindsinthestring. Toextractallmatchingsubstrings,youusetheRExtractAllfunction. AswithRExtract,TheRExtractAllfunction takesastringandaregularexpressionspatternasinputparameters. Itreturnsanarraythatcontainsallthematchingsubstrings.
延伸文章資訊
- 1Regex.Match Method (System.Text.RegularExpressions)
Searches an input string for a substring that matches a regular expression pattern and returns th...
- 2Extracting a substring using regular expression matching - IBM
You can use regular expression matching to retrieve a single substring or all substrings from a s...
- 3Regular Expression Syntax Reference
Example1: When pattern "\d\d" matches "abc123", match result: success; substring matched: "12"; p...
- 4How to extract a substring using regex - java - Stack Overflow
While substring looks for a specific string or value, regex looks for a format. It's more and mor...
- 5Find Substring within a string that begins and ... - Regex Tester
Top Regular Expressions. Url checker with or without http:// or https:// · Match string not conta...