c# - How to select n character after regex match -


i having url 'http:abc.com/test/test1/123-343$fsdsf$gdgdgfdgfdg35435435'

i want select 36 characters occur after 'http:abc.com/test/test1/' had wrote regex (?<=http[s]?://abc.com/\w*/\w*/) match pattern. problem selector. want select next 36 char after pattern match.

i trying (?<=http[s]?://abc.com/\w*/\w*/){36} not working.

the big problem after pattern match there can less 36 char present. want handle situation well. i.e if char present after pattern match less 36, select ever number of char present after pattern match.

(?<=https?:\/?\/?abc\.com\/[^\/]*\/[^\/]*\/).{1,36} 

you can try this.{1,36} allow capture character if less 36.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -