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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -