# Scripting functions in Web Sources Framework

**URL:** <https://community.mp3tag.de/t/scripting-functions-in-web-sources-framework/19705>\
**Category:** Web Sources Discussion\
**Created:** [January 20, 2018, 10:38am UTC](https://community.mp3tag.de/t/scripting-functions-in-web-sources-framework/19705 "2018-01-20T10:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benc](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@benc](https://community.mp3tag.de/u/benc)\
**Post date:** [January 20, 2018, 10:38am UTC](https://community.mp3tag.de/t/scripting-functions-in-web-sources-framework/19705/1 "2018-01-20T10:38:37Z")

</div>

Hello!

I would like to use Scripting functions in Web Sources Framework. Is it possible? For example something like this:

```
outputto "ALBUM"
say $left(%artist%,20)

```

(OK, it's a dummy example, it can be done in different ways, but there are more difficult cases than this.)

Thanks!

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [February 13, 2018, 8:54am UTC](https://community.mp3tag.de/t/scripting-functions-in-web-sources-framework/19705/2 "2018-02-13T08:54:07Z")

</div>

> [@benc](#):
>
> I would like to use Scripting functions in Web Sources Framework

It's not possible at the moment.

Can you give a concrete example? Maybe we find a workaround for that.

---

<div class="post-metadata">

**Author:** ![benc](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/82dd89/32.png) [@benc](https://community.mp3tag.de/u/benc)\
**Post date:** [February 13, 2018, 8:49pm UTC](https://community.mp3tag.de/t/scripting-functions-in-web-sources-framework/19705/3 "2018-02-13T20:49:04Z")

</div>

Hey Florian,

Thank you for your answer.

I wanted to write the releasetime, this format: YYYY-MM-DD and from that write the date with a function this format: DDMM. So, using sayregexp for the releasetime and using a function for the date.

Fortunately I found another way. (It works with beatport):

#RELEASETIME  
outputto "RELEASETIME"  
sayregexp "(?\<=releaseDate":")[^"]+" #YYYY-MM-DD

#YEAR  
outputto "YEAR"  
sayregexp "(?\<=releaseDate":")\d\d\d\d" #YYYY

#DATE  
outputto "DATE"  
sayregexp "(?\<=releaseDate":"\d\d\d\d-\d\d-)\d\d" #DD  
sayregexp "(?\<=releaseDate":"\d\d\d\d-)\d\d" #MM
