- Where Developers Learn, Share, & Build Careers


How can I replace the string, e.g. "A1 (value)" and return me "value" ?

You can use RegularExpression :

  dim RR = "A1 (value) ... (other value)" dim pattern = "\ (([^)] *) \" slow rijks = new system. Text. Regular Expression Reggae (pattern, system text. RegularExpressions.RegexOptions.Compiled) slow firstBracket = regex.Match (str) if firstBracket.Value.Length & lt; & Gt; 0 then 'free' bronchitis = first bracket.value Substrings (1, first bracket.value.length - 2) 'value' end if    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -