I have the following text
availableMemoryMb: 1024 buildId: b12dfv231-3422-4dsvec-adfdfa-1dvf13vd8 entryPoint: get_request_data httpsTrigger: securityLevel: SECURE_OPTIONAL url: https://us-central1-vvsfdv ds.cloudfunctions.net/evses ingressSettings: ALLOW_ALL labels: deployment-tool: cli-gcloud maxInstances: 1 name: projects/sasvbsd/locations/us-central1/functions/adfva runtime: python37 serviceAccountEmail: abcd-def@appspot.gserviceaccount.com sourceUploadUrl: https://storage.googleapis.com/gcf-upload-us-central1-ed32d2-7232322-44h73-96f0-6610891aa7ca/8f5950a6-0efd-4cca-9297-b5104156208b.zip?GoogleAccessId=service-12332@gcf-admin-robot.iam.gserviceaccount.com&Expires=1619892863&Signature=aH1%2BW741GRtVNM1rrwpz8jfxzhNCnQ%2BP5of%2Bq0ghMrcsmR6lM6PgJnHFVTZ5FsWC484rUhFIhBj5IYNEP0Egw4VA0Ui9o3hQSL9NdqBUMtmLM%2BqKKagHVHtUm1Rfr6U4xRxUm4z0SiHNSMB5aZEfwbdmCj6r%2FEx5HuKp5c9HNyJ8LYXynBrjztlZr9GkmHkyHMPM9CjW0c33BMeEWHEGqxUAj%2FyPksPn7y9WPbQFCiwUiQbd3ayuW%2FMVC53IVwjxkojrzLATGVvu12%2Brc9fQs7Zz%2FEc1ZthUVwBAdBYVj8Fn%2Fde5S7OJwdRUm938N%2B5gCX4x%2B7s25Bq6Lgk%2FLWesLw%3D%3D status: ACTIVE timeout: 60s updateTime: '2021-05-01T17:45:13.094Z' versionId: '7'
from which i need to extract the versionId (in this case: 7) which is last (not always) , here is my regular expression sed 's/\(.*\)versionId:\s+\'\([0-9]+\)\'/\2/'
and not sure why its not working, its coming back with entire content of my input