Paging Mr. Regex
-
Hello all. I'm trying to do some tag swapping and having no success. My tags come in the following format: <#data>. The data can be letters, numbers or spaces. My colleague here at work wrote the following: <#([^>])> This seems to match everything fine but I'm using a CodeProject tool called Expresso[^]and the match occurs only for the first character. Is there a way to make it recursively grab all the characters in between tags? I tried this with groups and was very frustrated: <#(?([^>]+)> It still only seems to grab the first character. Thanks in advance... *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";
-
Hello all. I'm trying to do some tag swapping and having no success. My tags come in the following format: <#data>. The data can be letters, numbers or spaces. My colleague here at work wrote the following: <#([^>])> This seems to match everything fine but I'm using a CodeProject tool called Expresso[^]and the match occurs only for the first character. Is there a way to make it recursively grab all the characters in between tags? I tried this with groups and was very frustrated: <#(?([^>]+)> It still only seems to grab the first character. Thanks in advance... *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";
-