leazfe
New member
I have three doubt:
1. In the next expresion: (?<desc>\w+) , how can i save in "desc" all the word fitting the expresion, for example with the next source: "Hallo ich bin ich" it should keep the hole string but it only has "Hallo".
2. How can i do an if statment with regular expresion. I have a string that could have a number or not, in the event of no number exist the string "" is asigned and i get always a cast exception, i have tried something like this:
(?(\d2)(?<status>\d2)|0)
3. How can i count the number of time that has appeared an expresion ?
Thanks,
1. In the next expresion: (?<desc>\w+) , how can i save in "desc" all the word fitting the expresion, for example with the next source: "Hallo ich bin ich" it should keep the hole string but it only has "Hallo".
2. How can i do an if statment with regular expresion. I have a string that could have a number or not, in the event of no number exist the string "" is asigned and i get always a cast exception, i have tried something like this:
(?(\d2)(?<status>\d2)|0)
3. How can i count the number of time that has appeared an expresion ?
Thanks,